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
|
-- 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 = {
|
||||||
|
|
Loading…
Reference in New Issue