aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2025-02-06 15:06:31 +0000
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2025-02-06 15:06:31 +0000
commit696ac53289280a29a349f3e68624e23129341126 (patch)
tree2cba1a9fc4266112887b4fcfdc84e8b0c096976f /doc
parentdocs(lua_ls): don't skip VIMRUNTIME ~/.config/nvim/.luarc.json exists #3603 (diff)
downloadnvim-lspconfig-696ac53289280a29a349f3e68624e23129341126.tar
nvim-lspconfig-696ac53289280a29a349f3e68624e23129341126.tar.gz
nvim-lspconfig-696ac53289280a29a349f3e68624e23129341126.tar.bz2
nvim-lspconfig-696ac53289280a29a349f3e68624e23129341126.tar.lz
nvim-lspconfig-696ac53289280a29a349f3e68624e23129341126.tar.xz
nvim-lspconfig-696ac53289280a29a349f3e68624e23129341126.tar.zst
nvim-lspconfig-696ac53289280a29a349f3e68624e23129341126.zip
docs: update configs.md
skip-checks: true
Diffstat (limited to 'doc')
-rw-r--r--doc/configs.md2
-rw-r--r--doc/configs.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/configs.md b/doc/configs.md
index 12da97dd..c8b2f966 100644
--- a/doc/configs.md
+++ b/doc/configs.md
@@ -5998,7 +5998,7 @@ require'lspconfig'.lua_ls.setup {
on_init = function(client)
if client.workspace_folders then
local path = client.workspace_folders[1].name
- if vim.loop.fs_stat(path..'/.luarc.json') or vim.loop.fs_stat(path..'/.luarc.jsonc') then
+ if path ~= vim.fn.stdpath('config') and (vim.loop.fs_stat(path..'/.luarc.json') or vim.loop.fs_stat(path..'/.luarc.jsonc')) then
return
end
end
diff --git a/doc/configs.txt b/doc/configs.txt
index 12da97dd..c8b2f966 100644
--- a/doc/configs.txt
+++ b/doc/configs.txt
@@ -5998,7 +5998,7 @@ require'lspconfig'.lua_ls.setup {
on_init = function(client)
if client.workspace_folders then
local path = client.workspace_folders[1].name
- if vim.loop.fs_stat(path..'/.luarc.json') or vim.loop.fs_stat(path..'/.luarc.jsonc') then
+ if path ~= vim.fn.stdpath('config') and (vim.loop.fs_stat(path..'/.luarc.json') or vim.loop.fs_stat(path..'/.luarc.jsonc')) then
return
end
end