diff options
author | Matthew Lemon <y@yulqen.org> | 2023-04-10 19:34:50 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-04-10 19:34:50 +0100 |
commit | 4f5c12b4dc4220c7220ea210f6a38f9dcafca0fd (patch) | |
tree | 9ed5a4e07dd18559b2f606dd16299ebfed93abf2 /nvim/after/plugin/lsp.lua | |
parent | 52739493c4fe31347488c8b56228dce721fadf91 (diff) | |
parent | 0649a7f18f4241570183c9dcf473fed04c66977f (diff) |
Merge branch 'master' of github.com:yulqen/arch-dotfiles
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({ |