aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2025-05-02 16:42:47 +0000
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2025-05-02 16:42:47 +0000
commitbeec9f8a5854a78872b0241c37fe156950bfb5f4 (patch)
treee2af4d8fb72622e087d754fa9170f476dbf51eb1 /doc
parentdocs(lua_ls): Lua.runtime.path example #3816 (diff)
downloadnvim-lspconfig-beec9f8a5854a78872b0241c37fe156950bfb5f4.tar
nvim-lspconfig-beec9f8a5854a78872b0241c37fe156950bfb5f4.tar.gz
nvim-lspconfig-beec9f8a5854a78872b0241c37fe156950bfb5f4.tar.bz2
nvim-lspconfig-beec9f8a5854a78872b0241c37fe156950bfb5f4.tar.lz
nvim-lspconfig-beec9f8a5854a78872b0241c37fe156950bfb5f4.tar.xz
nvim-lspconfig-beec9f8a5854a78872b0241c37fe156950bfb5f4.tar.zst
nvim-lspconfig-beec9f8a5854a78872b0241c37fe156950bfb5f4.zip
docs: update configs.md
skip-checks: true
Diffstat (limited to 'doc')
-rw-r--r--doc/configs.md8
-rw-r--r--doc/configs.txt8
2 files changed, 14 insertions, 2 deletions
diff --git a/doc/configs.md b/doc/configs.md
index 3f84505c..d82e5b6f 100644
--- a/doc/configs.md
+++ b/doc/configs.md
@@ -6200,7 +6200,13 @@ vim.lsp.config('lua_ls', {
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 = {
diff --git a/doc/configs.txt b/doc/configs.txt
index e8f5fe1f..631ec7d4 100644
--- a/doc/configs.txt
+++ b/doc/configs.txt
@@ -4467,7 +4467,13 @@ settings.
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 = {