diff options
| author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2024-11-28 22:44:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-28 13:44:19 -0800 |
| commit | 86dcd4d4ec014c5cb47033c52a54508acd503b97 (patch) | |
| tree | 94a024bade90965ce0fdc329fc8c63ddb628faed /lua/lspconfig/configs/fennel_ls.lua | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-86dcd4d4ec014c5cb47033c52a54508acd503b97.tar nvim-lspconfig-86dcd4d4ec014c5cb47033c52a54508acd503b97.tar.gz nvim-lspconfig-86dcd4d4ec014c5cb47033c52a54508acd503b97.tar.bz2 nvim-lspconfig-86dcd4d4ec014c5cb47033c52a54508acd503b97.tar.lz nvim-lspconfig-86dcd4d4ec014c5cb47033c52a54508acd503b97.tar.xz nvim-lspconfig-86dcd4d4ec014c5cb47033c52a54508acd503b97.tar.zst nvim-lspconfig-86dcd4d4ec014c5cb47033c52a54508acd503b97.zip | |
refactor: deprecate util.path.is_file #3474
Diffstat (limited to 'lua/lspconfig/configs/fennel_ls.lua')
| -rw-r--r-- | lua/lspconfig/configs/fennel_ls.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/lspconfig/configs/fennel_ls.lua b/lua/lspconfig/configs/fennel_ls.lua index f125d54f..269f04f2 100644 --- a/lua/lspconfig/configs/fennel_ls.lua +++ b/lua/lspconfig/configs/fennel_ls.lua @@ -6,7 +6,8 @@ return { filetypes = { 'fennel' }, root_dir = function(dir) local has_fls_project_cfg = function(path) - return util.path.is_file(vim.fs.joinpath(path, 'flsproject.fnl')) + local fnlpath = vim.fs.joinpath(path, 'flsproject.fnl') + 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, |
