aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/util.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2022-05-12 01:37:45 +0200
committerGitHub <noreply@github.com>2022-05-12 01:37:45 +0200
commit4f8d9de3e62aebe4154f8119db6e9ef42cf00a18 (patch)
tree9b28d77f2018e7168b547ab1ee222f28923956c0 /lua/lspconfig/util.lua
parentfeat: glint-language-server #1890 (diff)
parentfix(glint): add more files to root_dir pattern (diff)
downloadnvim-lspconfig-4f8d9de3e62aebe4154f8119db6e9ef42cf00a18.tar
nvim-lspconfig-4f8d9de3e62aebe4154f8119db6e9ef42cf00a18.tar.gz
nvim-lspconfig-4f8d9de3e62aebe4154f8119db6e9ef42cf00a18.tar.bz2
nvim-lspconfig-4f8d9de3e62aebe4154f8119db6e9ef42cf00a18.tar.lz
nvim-lspconfig-4f8d9de3e62aebe4154f8119db6e9ef42cf00a18.tar.xz
nvim-lspconfig-4f8d9de3e62aebe4154f8119db6e9ef42cf00a18.tar.zst
nvim-lspconfig-4f8d9de3e62aebe4154f8119db6e9ef42cf00a18.zip
Merge pull request #1893 from williamboman/fix/glint-project-root
fix(glint): detect project dir inside `on_new_config` hook rather than at module import
Diffstat (limited to 'lua/lspconfig/util.lua')
-rw-r--r--lua/lspconfig/util.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/lua/lspconfig/util.lua b/lua/lspconfig/util.lua
index dec80d95..a1eb75ba 100644
--- a/lua/lspconfig/util.lua
+++ b/lua/lspconfig/util.lua
@@ -207,6 +207,8 @@ M.path = (function()
return dir == root
end
+ local path_separator = is_windows and ';' or ':'
+
return {
is_dir = is_dir,
is_file = is_file,
@@ -218,6 +220,7 @@ M.path = (function()
traverse_parents = traverse_parents,
iterate_parents = iterate_parents,
is_descendant = is_descendant,
+ path_separator = path_separator,
}
end)()