Added clangd_extensions
This commit is contained in:
@@ -116,7 +116,7 @@ lsp_installer.on_server_ready(function(server)
|
||||
|
||||
-- (optional) Customize the options passed to the server
|
||||
if server.name == 'clangd' then
|
||||
opts.cmd = { 'clangd', '--compile-commands-dir=build_nvim' }
|
||||
return
|
||||
end
|
||||
|
||||
-- This setup() function is exactly the same as lspconfig's setup function (:help lspconfig-quickstart)
|
||||
@@ -139,3 +139,11 @@ null_ls.setup({
|
||||
capabilities = capabilities,
|
||||
})
|
||||
vim.diagnostic.config({ virtual_text = false })
|
||||
|
||||
require('clangd_extensions').setup({
|
||||
server = {
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
cmd = { 'clangd', '--compile-commands-dir=build_nvim' }
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user