Fix lua_ls paths for working in this project
This commit is contained in:
+10
-6
@@ -14,10 +14,6 @@
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
]]
|
]]
|
||||||
|
|
||||||
local runtime_path = vim.split(package.path, ";")
|
|
||||||
table.insert(runtime_path, "lua/?.lua")
|
|
||||||
table.insert(runtime_path, "lua/?/init.lua")
|
|
||||||
|
|
||||||
-- spec: https://luals.github.io/wiki/settings/
|
-- spec: https://luals.github.io/wiki/settings/
|
||||||
|
|
||||||
return {
|
return {
|
||||||
@@ -35,10 +31,18 @@ return {
|
|||||||
},
|
},
|
||||||
runtime = {
|
runtime = {
|
||||||
version = "LuaJIT",
|
version = "LuaJIT",
|
||||||
path = runtime_path,
|
path = {
|
||||||
|
"lua/?.lua",
|
||||||
|
"lua/?/init.lua",
|
||||||
|
"?/lua/?.lua",
|
||||||
|
"?/lua/?/init.lua",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
workspace = {
|
workspace = {
|
||||||
library = vim.api.nvim_get_runtime_file("", true),
|
library = {
|
||||||
|
vim.env.VIMRUNTIME,
|
||||||
|
vim.fn.stdpath("data") .. "/lazy",
|
||||||
|
},
|
||||||
checkThirdParty = false,
|
checkThirdParty = false,
|
||||||
},
|
},
|
||||||
telemetry = { enable = false, },
|
telemetry = { enable = false, },
|
||||||
|
|||||||
Reference in New Issue
Block a user