We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5f1b86 commit 7f047ddCopy full SHA for 7f047dd
lua/nvim-tree/actions/finders/search-node.lua
@@ -85,9 +85,17 @@ function M.fn()
85
end
86
-- reset &path
87
if path_existed then
88
- vim.api.nvim_buf_set_option(bufnr, "path", path_opt)
+ if vim.fn.has "nvim-0.10" == 1 then
89
+ vim.api.nvim_set_option_value("path", path_opt, { buf = bufnr })
90
+ else
91
+ vim.api.nvim_buf_set_option(bufnr, "path", path_opt) ---@diagnostic disable-line: deprecated
92
+ end
93
else
- vim.api.nvim_buf_set_option(bufnr, "path", nil)
94
95
+ vim.api.nvim_set_option_value("path", nil, { buf = bufnr })
96
97
+ vim.api.nvim_buf_set_option(bufnr, "path", nil) ---@diagnostic disable-line: deprecated
98
99
100
101
-- strip trailing slash
0 commit comments