diff options
| author | Phạm Bình An <111893501+brianhuster@users.noreply.github.com> | 2025-05-02 23:42:37 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-02 09:42:37 -0700 |
| commit | a05bfc8988bb10d5bff32c314642c3243226d8dc (patch) | |
| tree | 645a7ea437893c8f19e30cc16862bc883e09fa4a /lsp/lua_ls.lua | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-a05bfc8988bb10d5bff32c314642c3243226d8dc.tar nvim-lspconfig-a05bfc8988bb10d5bff32c314642c3243226d8dc.tar.gz nvim-lspconfig-a05bfc8988bb10d5bff32c314642c3243226d8dc.tar.bz2 nvim-lspconfig-a05bfc8988bb10d5bff32c314642c3243226d8dc.tar.lz nvim-lspconfig-a05bfc8988bb10d5bff32c314642c3243226d8dc.tar.xz nvim-lspconfig-a05bfc8988bb10d5bff32c314642c3243226d8dc.tar.zst nvim-lspconfig-a05bfc8988bb10d5bff32c314642c3243226d8dc.zip | |
docs(lua_ls): Lua.runtime.path example #3816
Diffstat (limited to 'lsp/lua_ls.lua')
| -rw-r--r-- | lsp/lua_ls.lua | 8 |
1 files changed, 7 insertions, 1 deletions
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 = { |
