Added clangd_extensions

This commit is contained in:
2022-03-16 23:55:26 +01:00
parent d219e43cc7
commit e3a6774b76
3 changed files with 25 additions and 2 deletions

View File

@@ -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' }
},
})