diff options
| author | William Boman <william@redwill.se> | 2022-05-06 12:06:51 +0200 |
|---|---|---|
| committer | William Boman <william@redwill.se> | 2022-05-06 12:21:12 +0200 |
| commit | d42b86ac71063c54c53402e0c7e2ed667cc2f495 (patch) | |
| tree | 7761aa6b5cd5644db78414ef50107ad651b762b6 /lua/lspconfig/util.lua | |
| parent | feat: glint-language-server #1890 (diff) | |
| download | nvim-lspconfig-d42b86ac71063c54c53402e0c7e2ed667cc2f495.tar nvim-lspconfig-d42b86ac71063c54c53402e0c7e2ed667cc2f495.tar.gz nvim-lspconfig-d42b86ac71063c54c53402e0c7e2ed667cc2f495.tar.bz2 nvim-lspconfig-d42b86ac71063c54c53402e0c7e2ed667cc2f495.tar.lz nvim-lspconfig-d42b86ac71063c54c53402e0c7e2ed667cc2f495.tar.xz nvim-lspconfig-d42b86ac71063c54c53402e0c7e2ed667cc2f495.tar.zst nvim-lspconfig-d42b86ac71063c54c53402e0c7e2ed667cc2f495.zip | |
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)() |
