aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorYves Jans <yves@opsconsult.net>2023-10-12 11:47:53 +0200
committerGitHub <noreply@github.com>2023-10-12 17:47:53 +0800
commit61f984586fefa9869f07f3027e0dce5752412786 (patch)
tree6384577d77f17c15f8f2723de3e9f365fde9419d /lua
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-61f984586fefa9869f07f3027e0dce5752412786.tar
nvim-lspconfig-61f984586fefa9869f07f3027e0dce5752412786.tar.gz
nvim-lspconfig-61f984586fefa9869f07f3027e0dce5752412786.tar.bz2
nvim-lspconfig-61f984586fefa9869f07f3027e0dce5752412786.tar.lz
nvim-lspconfig-61f984586fefa9869f07f3027e0dce5752412786.tar.xz
nvim-lspconfig-61f984586fefa9869f07f3027e0dce5752412786.tar.zst
nvim-lspconfig-61f984586fefa9869f07f3027e0dce5752412786.zip
fix(nginx-language-server): update root directory pattern (#2857)
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/nginx_language_server.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lspconfig/server_configurations/nginx_language_server.lua b/lua/lspconfig/server_configurations/nginx_language_server.lua
index 2cbb1d63..9dfc0b5d 100644
--- a/lua/lspconfig/server_configurations/nginx_language_server.lua
+++ b/lua/lspconfig/server_configurations/nginx_language_server.lua
@@ -5,7 +5,7 @@ return {
cmd = { 'nginx-language-server' },
filetypes = { 'nginx' },
root_dir = function(fname)
- return util.root_pattern('nginx.conf', '.git') or util.find_git_ancestor(fname)
+ return util.root_pattern('nginx.conf', '.git')(fname) or util.find_git_ancestor(fname)
end,
single_file_support = true,
},