diff options
| author | dundargoc <gocdundar@gmail.com> | 2024-11-27 12:26:00 +0100 |
|---|---|---|
| committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2024-11-27 14:56:17 +0100 |
| commit | 2a11b98741d168790cf6fa6798e991b3f78bf314 (patch) | |
| tree | 568b531425172c7efaff914fbc39d46c1a7b2bfa /lua/lspconfig/configs/foam_ls.lua | |
| parent | refactor: group deprecated functions at the end (diff) | |
| download | nvim-lspconfig-2a11b98741d168790cf6fa6798e991b3f78bf314.tar nvim-lspconfig-2a11b98741d168790cf6fa6798e991b3f78bf314.tar.gz nvim-lspconfig-2a11b98741d168790cf6fa6798e991b3f78bf314.tar.bz2 nvim-lspconfig-2a11b98741d168790cf6fa6798e991b3f78bf314.tar.lz nvim-lspconfig-2a11b98741d168790cf6fa6798e991b3f78bf314.tar.xz nvim-lspconfig-2a11b98741d168790cf6fa6798e991b3f78bf314.tar.zst nvim-lspconfig-2a11b98741d168790cf6fa6798e991b3f78bf314.zip | |
refactor: deprecate `util.path.exists`
Use `vim.uv.fs_stat` instead.
Work on https://github.com/neovim/nvim-lspconfig/issues/2079.
Diffstat (limited to 'lua/lspconfig/configs/foam_ls.lua')
| -rw-r--r-- | lua/lspconfig/configs/foam_ls.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lspconfig/configs/foam_ls.lua b/lua/lspconfig/configs/foam_ls.lua index 1a991b61..265f679c 100644 --- a/lua/lspconfig/configs/foam_ls.lua +++ b/lua/lspconfig/configs/foam_ls.lua @@ -6,7 +6,7 @@ return { filetypes = { 'foam', 'OpenFOAM' }, root_dir = function(fname) return util.search_ancestors(fname, function(path) - if util.path.exists(util.path.join(path, 'system', 'controlDict')) then + if vim.loop.fs_stat(util.path.join(path, 'system', 'controlDict')) then return path end end) |
