mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-31 07:09:23 +02:00
udpates
This commit is contained in:
parent
62e44109e5
commit
4ab0d1ff05
2 changed files with 14 additions and 1 deletions
|
@ -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
|
||||
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue