diff options
| author | Siddhant Agarwal <68201519+siddhantdev@users.noreply.github.com> | 2025-06-09 22:01:37 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-09 09:31:37 -0700 |
| commit | 2f0fbdaa480c5b014b68bfdb85aa105d0bef3637 (patch) | |
| tree | 559c832e978ccfec1e91971beb1176e1d202e24f /runtime/lua/vim/lsp.lua | |
| parent | 2d980e37c836a52074bea59bbeeed9b9062c26db (diff) | |
| download | rneovim-2f0fbdaa480c5b014b68bfdb85aa105d0bef3637.tar.gz rneovim-2f0fbdaa480c5b014b68bfdb85aa105d0bef3637.tar.bz2 rneovim-2f0fbdaa480c5b014b68bfdb85aa105d0bef3637.zip | |
feat(vim.fs): root() can specify "equal priority" #34276
Diffstat (limited to 'runtime/lua/vim/lsp.lua')
| -rw-r--r-- | runtime/lua/vim/lsp.lua | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua index 450452157a..87109548b1 100644 --- a/runtime/lua/vim/lsp.lua +++ b/runtime/lua/vim/lsp.lua @@ -726,13 +726,7 @@ function lsp.start(config, opts) validate('root_markers', opts._root_markers, 'table') config = vim.deepcopy(config) - for _, marker in ipairs(opts._root_markers) do - local root = vim.fs.root(bufnr, marker) - if root ~= nil then - config.root_dir = root - break - end - end + config.root_dir = vim.fs.root(bufnr, opts._root_markers) end if |