stylua indent

This commit is contained in:
Alexander Courtis
2022-04-02 12:59:06 +11:00
parent 5958fd5d06
commit 51d1af4ee2

View File

@@ -143,8 +143,8 @@ function M.rename_loaded_buffers(old_path, new_path)
local buf_name = a.nvim_buf_get_name(buf)
local exact_match = buf_name == old_path
local child_match = (
buf_name:sub(1, #old_path) == old_path and buf_name:sub(#old_path + 1, #old_path + 1) == path_separator
)
buf_name:sub(1, #old_path) == old_path and buf_name:sub(#old_path + 1, #old_path + 1) == path_separator
)
if exact_match or child_match then
a.nvim_buf_set_name(buf, new_path .. buf_name:sub(#old_path + 1))
-- to avoid the 'overwrite existing file' error message on write for