Fix lua_ls paths for working in this project

This commit is contained in:
2023-09-25 18:28:39 +02:00
parent 531df4d15c
commit 049aa5d9dd
+10 -6
View File
@@ -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, },