fix(nvim): remove hard-coded Lua LSP paths

This commit is contained in:
Rob Watson 2023-09-22 14:27:12 +02:00
parent 865a6aa5c1
commit 20d8ddf906
1 changed files with 0 additions and 4 deletions

View File

@ -150,15 +150,11 @@ nvim_lsp.diagnosticls.setup({
-- Lua -- 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, ";") local runtime_path = vim.split(package.path, ";")
table.insert(runtime_path, "lua/?.lua") table.insert(runtime_path, "lua/?.lua")
table.insert(runtime_path, "lua/?/init.lua") table.insert(runtime_path, "lua/?/init.lua")
nvim_lsp.lua_ls.setup({ nvim_lsp.lua_ls.setup({
cmd = { lua_ls_binary, "-E", lua_ls_root_path .. "/main.lua" },
settings = { settings = {
Lua = { Lua = {
runtime = { runtime = {