[Lua] Load luarocks modules directory
This commit is contained in:
@@ -20,12 +20,13 @@ lsp.config("lua_ls", {
|
||||
library = {
|
||||
vim.fn.expand("$VIMRUNTIME/lua"),
|
||||
vim.fn.stdpath("config") .. "/lua",
|
||||
vim.fn.expand("~/.luarocks/share/lua/5.3"),
|
||||
vim.fn.expand("~/.luarocks/share/lua/5.4"),
|
||||
-- To use LÖVR, follow https://lovr.org/docs/dev/VS_Code_Setup#manual-installation
|
||||
-- TL;DR run lovr api cats in the lovr-docs repo and update the path below
|
||||
-- Then update the blow path (if you have not used the script in this repo)
|
||||
vim.fn.expand("~/.local/share/lovr-docs/api/cats"),
|
||||
"/usr/share/lua/5.3",
|
||||
vim.fn.expand(vim.fn.getcwd() .. "/lua_modules/share/lua/5.4"),
|
||||
"/usr/share/lua/5.4",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user