From 1dc0c6c74ee0762aae89f24a37aaa430f1b83952 Mon Sep 17 00:00:00 2001 From: Mo-TMD <> Date: Sun, 27 Apr 2025 20:22:55 +0200 Subject: [PATCH] feat(lua_ls): add rootPath to workspace.library This seems to make it possible to jump to any file regardless of project structure. --- lsp/lua_ls.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lsp/lua_ls.lua b/lsp/lua_ls.lua index c76d08cece..3970b6c46e 100644 --- a/lsp/lua_ls.lua +++ b/lsp/lua_ls.lua @@ -65,4 +65,14 @@ return { 'selene.yml', '.git', }, + settings = { + Lua = { + workspace = { + library = {}, + }, + }, + }, + before_init = function(init_params, config) + table.insert(config.settings.Lua.workspace.library, init_params.rootPath) + end, }