aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/lua_ls.lua
diff options
context:
space:
mode:
authorPhạm Bình An <111893501+brianhuster@users.noreply.github.com>2025-05-02 23:42:37 +0700
committerGitHub <noreply@github.com>2025-05-02 09:42:37 -0700
commita05bfc8988bb10d5bff32c314642c3243226d8dc (patch)
tree645a7ea437893c8f19e30cc16862bc883e09fa4a /lsp/lua_ls.lua
parentdocs: update configs.md (diff)
downloadnvim-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.lua8
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 = {