From 20d8ddf90687fc986a9c99566a25e92eee637416 Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Fri, 22 Sep 2023 14:27:12 +0200 Subject: [PATCH] fix(nvim): remove hard-coded Lua LSP paths --- vim/lua/lsp_config.lua | 4 ---- 1 file changed, 4 deletions(-) diff --git a/vim/lua/lsp_config.lua b/vim/lua/lsp_config.lua index b2412dc..cda3b5a 100644 --- a/vim/lua/lsp_config.lua +++ b/vim/lua/lsp_config.lua @@ -150,15 +150,11 @@ nvim_lsp.diagnosticls.setup({ -- Lua -local lua_ls_root_path = os.getenv("HOME") .. "/dev/lua-language-server" -local lua_ls_binary = lua_ls_root_path .. "/bin/lua-language-server" - local runtime_path = vim.split(package.path, ";") table.insert(runtime_path, "lua/?.lua") table.insert(runtime_path, "lua/?/init.lua") nvim_lsp.lua_ls.setup({ - cmd = { lua_ls_binary, "-E", lua_ls_root_path .. "/main.lua" }, settings = { Lua = { runtime = {