fix(nvim): remove hard-coded Lua LSP paths
This commit is contained in:
parent
865a6aa5c1
commit
20d8ddf906
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue