diff --git a/nvim/after/plugin/lsp.lua b/nvim/after/plugin/lsp.lua index 386d131..f8ee762 100644 --- a/nvim/after/plugin/lsp.lua +++ b/nvim/after/plugin/lsp.lua @@ -9,7 +9,7 @@ require("mason-lspconfig").setup({ 'rust_analyzer', 'cmake', 'clangd', - 'zls', + --'zls', 'bashls', } }) @@ -20,7 +20,15 @@ lsp.set_preferences({ sign_icons = { } }) -lsp.on_attach(function(client, bufnr) +local cmp = require('cmp') + +cmp.setup({ + mapping = { + [''] = cmp.mapping.confirm({select = false}), + } +}) + +lsp.on_attach(function(_, bufnr) local opts = { buffer = bufnr, remap = false } vim.keymap.set("n", "gd", function() vim.lsp.buf.definition() end, opts)