fix: cannot rename buffer (#729)

This commit is contained in:
yetone 2024-10-16 18:05:19 +08:00 committed by GitHub
parent 595ea56fc1
commit 9907f05fbf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -669,7 +669,7 @@ function M.get_opened_buffer(filepath)
end
function M.create_new_buffer_with_file(filepath)
local buf = api.nvim_create_buf(false, true)
local buf = api.nvim_create_buf(true, false)
api.nvim_buf_set_name(buf, filepath)