diff options
Diffstat (limited to 'nvim/after/plugin/lsp.lua')
-rw-r--r-- | nvim/after/plugin/lsp.lua | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/nvim/after/plugin/lsp.lua b/nvim/after/plugin/lsp.lua index 8005ccc..e6e2bda 100644 --- a/nvim/after/plugin/lsp.lua +++ b/nvim/after/plugin/lsp.lua @@ -18,24 +18,25 @@ lsp.configure('lua_ls', { }) -local cmp = require('cmp') -local cmp_select = {behavior = cmp.SelectBehavior.Select} -local cmp_mappings = lsp.defaults.cmp_mappings({ - ['<C-p>'] = cmp.mapping.select_prev_item(cmp_select), - ['<C-n>'] = cmp.mapping.select_next_item(cmp_select), - ['<C-y>'] = cmp.mapping.confirm({ select = true }), - ["<C-Space>"] = cmp.mapping.complete(), -}) +-- local cmp = require('cmp') +-- local cmp_select = {behavior = cmp.SelectBehavior.Select} +-- local cmp_mappings = lsp.defaults.cmp_mappings({ +-- ['<C-p>'] = cmp.mapping.select_prev_item(cmp_select), +-- ['<C-n>'] = cmp.mapping.select_next_item(cmp_select), +-- ['<C-y>'] = cmp.mapping.confirm({ select = true }), +-- ["<C-Space>"] = cmp.mapping.complete(), +-- }) -cmp_mappings['<Tab>'] = nil -cmp_mappings['<S-Tab>'] = nil +-- cmp_mappings['<Tab>'] = nil +-- cmp_mappings['<S-Tab>'] = nil lsp.setup_nvim_cmp({ mapping = cmp_mappings }) + lsp.set_preferences({ - suggest_lsp_servers = true, + suggest_lsp_servers = false, sign_icons = { error = 'E', warn = 'W', @@ -59,6 +60,10 @@ lsp.on_attach(function(client, bufnr) vim.keymap.set("i", "<C-h>", function() vim.lsp.buf.signature_help() end, opts) end) +lsp.skip_server_setup({ + 'pylsp', +}) + lsp.setup() vim.diagnostic.config({ |