fix(file rename): edit buffer when renaming to reset filetype
fixes https://github.com/kyazdani42/nvim-tree.lua/issues/1404
This commit is contained in:
@@ -199,6 +199,7 @@ function M.rename_loaded_buffers(old_path, new_path)
|
|||||||
if a.nvim_buf_get_option(buf, "buftype") == "" then
|
if a.nvim_buf_get_option(buf, "buftype") == "" then
|
||||||
a.nvim_buf_call(buf, function()
|
a.nvim_buf_call(buf, function()
|
||||||
vim.cmd "silent! write!"
|
vim.cmd "silent! write!"
|
||||||
|
vim.cmd "edit"
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user