diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2024-12-06 03:19:39 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-06 03:19:39 -0800 |
| commit | 64073cbed0ce23e988160bfd1a148a75b6af94cc (patch) | |
| tree | e0fe72bb119de8903bd716f6bc510c2e1d4c11f7 /lua/lspconfig/configs/fennel_ls.lua | |
| parent | fix(typst_lsp): deprecate typst_lsp to tinymist (#3493) (diff) | |
| download | nvim-lspconfig-64073cbed0ce23e988160bfd1a148a75b6af94cc.tar nvim-lspconfig-64073cbed0ce23e988160bfd1a148a75b6af94cc.tar.gz nvim-lspconfig-64073cbed0ce23e988160bfd1a148a75b6af94cc.tar.bz2 nvim-lspconfig-64073cbed0ce23e988160bfd1a148a75b6af94cc.tar.lz nvim-lspconfig-64073cbed0ce23e988160bfd1a148a75b6af94cc.tar.xz nvim-lspconfig-64073cbed0ce23e988160bfd1a148a75b6af94cc.tar.zst nvim-lspconfig-64073cbed0ce23e988160bfd1a148a75b6af94cc.zip | |
Revert "refactor: use simpler file existence check" #3495
This reverts commit 90c1c6cc822b1836209514c096069b9bbeab63d9.
Fix #3485
Diffstat (limited to 'lua/lspconfig/configs/fennel_ls.lua')
| -rw-r--r-- | lua/lspconfig/configs/fennel_ls.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lspconfig/configs/fennel_ls.lua b/lua/lspconfig/configs/fennel_ls.lua index d1827cf4..273f1fed 100644 --- a/lua/lspconfig/configs/fennel_ls.lua +++ b/lua/lspconfig/configs/fennel_ls.lua @@ -7,7 +7,7 @@ return { root_dir = function(dir) local has_fls_project_cfg = function(path) local fnlpath = vim.fs.joinpath(path, 'flsproject.fnl') - return vim.fn.getftype(fnlpath) == 'file' + return (vim.loop.fs_stat(fnlpath) or {}).type == 'file' end return util.search_ancestors(dir, has_fls_project_cfg) or vim.fs.root(0, '.git') end, |
