From 4697490a836598df78189e679e2e4fad8522bc3a Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 9 Apr 2023 21:54:11 +0100 Subject: Removes ThePrimeagen bindings from LSP for now --- nvim/after/plugin/lsp.lua | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'nvim/after/plugin/lsp.lua') diff --git a/nvim/after/plugin/lsp.lua b/nvim/after/plugin/lsp.lua index c54e03b..2ef1bfa 100644 --- a/nvim/after/plugin/lsp.lua +++ b/nvim/after/plugin/lsp.lua @@ -18,17 +18,17 @@ lsp.configure('lua_ls', { }) -local cmp = require('cmp') -local cmp_select = {behavior = cmp.SelectBehavior.Select} -local cmp_mappings = lsp.defaults.cmp_mappings({ - [''] = cmp.mapping.select_prev_item(cmp_select), - [''] = cmp.mapping.select_next_item(cmp_select), - [''] = cmp.mapping.confirm({ select = true }), - [""] = cmp.mapping.complete(), -}) +-- local cmp = require('cmp') +-- local cmp_select = {behavior = cmp.SelectBehavior.Select} +-- local cmp_mappings = lsp.defaults.cmp_mappings({ +-- [''] = cmp.mapping.select_prev_item(cmp_select), +-- [''] = cmp.mapping.select_next_item(cmp_select), +-- [''] = cmp.mapping.confirm({ select = true }), +-- [""] = cmp.mapping.complete(), +-- }) -cmp_mappings[''] = nil -cmp_mappings[''] = nil +-- cmp_mappings[''] = nil +-- cmp_mappings[''] = nil lsp.setup_nvim_cmp({ mapping = cmp_mappings -- cgit v1.2.3 From 0649a7f18f4241570183c9dcf473fed04c66977f Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 10 Apr 2023 17:39:49 +0100 Subject: Adds back ale config for Python --- nvim/after/plugin/lsp.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'nvim/after/plugin/lsp.lua') diff --git a/nvim/after/plugin/lsp.lua b/nvim/after/plugin/lsp.lua index 2ef1bfa..5ab64d1 100644 --- a/nvim/after/plugin/lsp.lua +++ b/nvim/after/plugin/lsp.lua @@ -34,8 +34,9 @@ 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", "", function() vim.lsp.buf.signature_help() end, opts) end) +lsp.skip_server_setup({ + 'pylsp', +}) + lsp.setup() vim.diagnostic.config({ -- cgit v1.2.3