From c290617fd5ea13441d73f704727b43b4d1709324 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Fri, 19 Nov 2021 18:16:17 -0800 Subject: [PATCH] nvim: fixed lsp's not loading --- .config/nvim/lua/blake/lsp.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.config/nvim/lua/blake/lsp.lua b/.config/nvim/lua/blake/lsp.lua index f28a6eb..dd4a442 100644 --- a/.config/nvim/lua/blake/lsp.lua +++ b/.config/nvim/lua/blake/lsp.lua @@ -169,7 +169,6 @@ end -- <<< -- lspconfig >>> M.lspconfig = function() local nvim_lsp = require('lspconfig') - -- Keybinds for servers >>> -- Use an on_attach function to only map the following keys -- after the language server attaches to the current buffer @@ -202,7 +201,6 @@ M.lspconfig = function() buf_set_keymap('n', 'q', 'lua vim.lsp.diagnostic.set_loclist()', opts) buf_set_keymap('n', 'f', 'lua vim.lsp.buf.formatting()', opts) end -- <<< - -- Load servers >>> -- Use a loop to conveniently call 'setup' on multiple servers and -- map buffer local keybindings when the language server attaches @@ -212,7 +210,7 @@ M.lspconfig = function() bashls = 'bash-language-server', } for lsp, exe in pairs(lsp_servers) do - if (vim.fn.executable(exe) == true) then + if (vim.fn.executable(exe)) then nvim_lsp[lsp].setup { on_attach = on_attach, flags = { @@ -221,7 +219,7 @@ M.lspconfig = function() } end end - -- Custom servers >>> + -- Custom servers -- lua >>> local sumneko_root_path local sumneko_binary @@ -271,7 +269,6 @@ M.lspconfig = function() } end -- lua <<< - -- Custom servers <<< -- Load servers <<< end -- <<<