From 742c57fea5a0fb2b46d4befd12e1bc5c28a05a30 Mon Sep 17 00:00:00 2001 From: siduck76 Date: Wed, 2 Jun 2021 06:50:40 +0530 Subject: [PATCH] fix lua lsp cmd error --- lua/nvim-lspconfig.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/nvim-lspconfig.lua b/lua/nvim-lspconfig.lua index 29fe29d0..d8e9f554 100644 --- a/lua/nvim-lspconfig.lua +++ b/lua/nvim-lspconfig.lua @@ -1,4 +1,4 @@ - function on_attach(client) +function on_attach(client) local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end @@ -50,7 +50,7 @@ local function setup_servers() root_dir = vim.loop.cwd } elseif lang == "lua" then - lspconf.sumneko_lua.setup { + lspconf[lang].setup { root_dir = function() return vim.loop.cwd() end,