Skip to content

Commit 1dc0c6c

Browse files
author
Mo-TMD
committed
feat(lua_ls): add rootPath to workspace.library
This seems to make it possible to jump to any file regardless of project structure.
1 parent 641e567 commit 1dc0c6c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lsp/lua_ls.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,14 @@ return {
6565
'selene.yml',
6666
'.git',
6767
},
68+
settings = {
69+
Lua = {
70+
workspace = {
71+
library = {},
72+
},
73+
},
74+
},
75+
before_init = function(init_params, config)
76+
table.insert(config.settings.Lua.workspace.library, init_params.rootPath)
77+
end,
6878
}

0 commit comments

Comments
 (0)