Skip to content

Commit 90bf140

Browse files
committed
fix(file rename): edit buffer when renaming to reset filetype
fixes #1404
1 parent fd562ed commit 90bf140

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/nvim-tree/utils.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ function M.rename_loaded_buffers(old_path, new_path)
199199
if a.nvim_buf_get_option(buf, "buftype") == "" then
200200
a.nvim_buf_call(buf, function()
201201
vim.cmd "silent! write!"
202+
vim.cmd "edit"
202203
end)
203204
end
204205
end

0 commit comments

Comments
 (0)