From a05bfc8988bb10d5bff32c314642c3243226d8dc Mon Sep 17 00:00:00 2001 From: Phạm Bình An <111893501+brianhuster@users.noreply.github.com> Date: Fri, 2 May 2025 23:42:37 +0700 Subject: docs(lua_ls): Lua.runtime.path example #3816 --- lsp/lua_ls.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lsp/lua_ls.lua') diff --git a/lsp/lua_ls.lua b/lsp/lua_ls.lua index 6f9aaa84..d7a1821a 100644 --- a/lsp/lua_ls.lua +++ b/lsp/lua_ls.lua @@ -29,7 +29,13 @@ --- runtime = { --- -- Tell the language server which version of Lua you're using (most --- -- likely LuaJIT in the case of Neovim) ---- version = 'LuaJIT' +--- version = 'LuaJIT', +--- -- Tell the language server how to find Lua modules same way as Neovim +--- -- (see `:h lua-module-load`) +--- path = { +--- 'lua/?.lua', +--- 'lua/?/init.lua', +--- }, --- }, --- -- Make the server aware of Neovim runtime files --- workspace = { -- cgit v1.2.3-70-g09d2