This commit is contained in:
Chris 2021-04-01 20:32:49 -04:00
parent 62e44109e5
commit 4ab0d1ff05
2 changed files with 14 additions and 1 deletions

View file

@ -1,4 +1,13 @@
require'lspconfig'.clangd.setup {
cmd = {DATA_PATH .. "/lspinstall/cpp/clangd/bin/clangd"},
on_attach = require'lsp'.common_on_attach
on_attach = require'lsp'.common_on_attach,
handlers = {
["textDocument/publishDiagnostics"] = vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, {
virtual_text = O.clang.diagnostics.virtual_text,
signs = O.clang.diagnostics.signs,
underline = O.clang.diagnostics.underline,
update_in_insert = true
})
}
}

View file

@ -10,6 +10,10 @@ O.auto_complete = true
O.colorscheme = 'nvcode'
O.auto_close_tree = 0
O.clang.diagnostics.virtual_text = false
O.clang.diagnostics.signs = false
O.clang.diagnostics.underline = false
-- python
-- add things like O.python.formatter.yapf.exec_path
-- add things like O.python.linter.flake8.exec_path