Open
Description
How are you using the lua-language-server?
NeoVim
Which OS are you using?
Linux
What is the issue affecting?
Libraries
Expected Behaviour
I expect my workspace libraries to be added to .luarc.json
.
Actual Behaviour
.luarc.json
is not being created nor modified at all. It also prompts for luassert
addition to workspace, where I answer 1, yes and modify settings. It does not modifies them.
Reproduction steps
- Open a lua file having workspace setting set up.
- It will look for all workspace.
- It should write in
.luarc.json
all the content.
Additional Notes
I tried and 3.6.4 was working, 3.6.5 and so on not. Maybe due to https://github.com/sumneko/lua-language-server/blob/4a9ab5b1ae9889e9732b53ad8cdf3b6db5394c3b/changelog.md?plain=1#L33
This is my config on nvim lspconfig:
Lua = {
runtime = { version = "LuaJIT" },
diagnostics = { globals = { "vim" } },
workspace = { library = vim.api.nvim_get_runtime_file("", true) },
},
Log File
No response