summaryrefslogtreecommitdiff
path: root/.config/nvim/after/plugin/lsp.lua
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-02-21 11:35:29 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-02-21 11:35:29 +0100
commit66439533666e8b80c8eae377de2df00be86030c1 (patch)
treedd879c3fd772b29ce3f9ea05fb62cfb264c00909 /.config/nvim/after/plugin/lsp.lua
parent7d070820e83413da114909908dce674041b0ef07 (diff)
nvim: Minor config fixes
Diffstat (limited to '.config/nvim/after/plugin/lsp.lua')
-rw-r--r--.config/nvim/after/plugin/lsp.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/.config/nvim/after/plugin/lsp.lua b/.config/nvim/after/plugin/lsp.lua
index 12e1025..e0684e2 100644
--- a/.config/nvim/after/plugin/lsp.lua
+++ b/.config/nvim/after/plugin/lsp.lua
@@ -1,6 +1,8 @@
local conf = require('lspconfig')
-conf.clangd.setup {}
+conf.clangd.setup {
+ cmd = {'clangd', '-header-insertion=never'}
+}
conf.gopls.setup {}
conf.rust_analyzer.setup {}
conf.lua_ls.setup {
@@ -32,6 +34,7 @@ vim.api.nvim_create_autocmd('LspAttach', {
vim.keymap.set(mode, map, fn, { buffer = ev.buf })
end
+ vim.diagnostic.disable()
vim.bo[ev.buf].omnifunc = 'v:lua.vim.lsp.omnifunc'
remap('n', 'K', vim.lsp.buf.hover)
remap('n', 'gd', vim.lsp.buf.definition)