diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2022-05-12 01:37:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-12 01:37:45 +0200 |
| commit | 4f8d9de3e62aebe4154f8119db6e9ef42cf00a18 (patch) | |
| tree | 9b28d77f2018e7168b547ab1ee222f28923956c0 /lua/lspconfig/util.lua | |
| parent | feat: glint-language-server #1890 (diff) | |
| parent | fix(glint): add more files to root_dir pattern (diff) | |
| download | nvim-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.lua | 3 |
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)() |
