diff options
| author | dundargoc <gocdundar@gmail.com> | 2024-11-28 18:11:56 +0100 |
|---|---|---|
| committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2024-12-08 18:32:42 +0100 |
| commit | 19626a3a4484de12c3d8c0833bb49ecb3dcd5c76 (patch) | |
| tree | f6a62d730ce925591d57b83a70a73b3c58029eb6 /lua/lspconfig/configs/rome.lua | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-19626a3a4484de12c3d8c0833bb49ecb3dcd5c76.tar nvim-lspconfig-19626a3a4484de12c3d8c0833bb49ecb3dcd5c76.tar.gz nvim-lspconfig-19626a3a4484de12c3d8c0833bb49ecb3dcd5c76.tar.bz2 nvim-lspconfig-19626a3a4484de12c3d8c0833bb49ecb3dcd5c76.tar.lz nvim-lspconfig-19626a3a4484de12c3d8c0833bb49ecb3dcd5c76.tar.xz nvim-lspconfig-19626a3a4484de12c3d8c0833bb49ecb3dcd5c76.tar.zst nvim-lspconfig-19626a3a4484de12c3d8c0833bb49ecb3dcd5c76.zip | |
refactor: deprecate util.find_node_modules_ancestor
Work on https://github.com/neovim/nvim-lspconfig/issues/2079.
Diffstat (limited to 'lua/lspconfig/configs/rome.lua')
| -rw-r--r-- | lua/lspconfig/configs/rome.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lspconfig/configs/rome.lua b/lua/lspconfig/configs/rome.lua index 6847c0d4..831469e4 100644 --- a/lua/lspconfig/configs/rome.lua +++ b/lua/lspconfig/configs/rome.lua @@ -13,7 +13,7 @@ return { }, root_dir = function(fname) return util.find_package_json_ancestor(fname) - or util.find_node_modules_ancestor(fname) + or vim.fs.find('node_modules', { path = fname, upward = true })[1] or util.find_git_ancestor(fname) end, single_file_support = true, |
