summaryrefslogtreecommitdiff
path: root/.config/nvim/after/plugin
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/after/plugin')
-rw-r--r--.config/nvim/after/plugin/lsp.lua5
-rw-r--r--.config/nvim/after/plugin/treesitter.lua3
2 files changed, 5 insertions, 3 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)
diff --git a/.config/nvim/after/plugin/treesitter.lua b/.config/nvim/after/plugin/treesitter.lua
index e069683..dfd2cc0 100644
--- a/.config/nvim/after/plugin/treesitter.lua
+++ b/.config/nvim/after/plugin/treesitter.lua
@@ -43,8 +43,7 @@ require('nvim-treesitter.configs').setup {
keymaps = {
init_selection = '<C-Space>',
node_incremental = '<C-Space>',
- scope_incremental = '<C-s>',
- node_decremental = '<C-Backspace>',
+ node_decremental = '<C-s>',
}
},