fix: formatting

This commit is contained in:
kiyan 2022-04-23 12:34:56 +02:00
parent 3ecf22ced1
commit d4d02cd4d1
2 changed files with 3 additions and 5 deletions

View File

@ -276,9 +276,7 @@ local function _draw(bufnr)
end
local function should_show_arrows()
return not M.config.indent_markers.enable
and M.icon_state.show_folder_icon
and M.icon_state.show_folder_arrows
return not M.config.indent_markers.enable and M.icon_state.show_folder_icon and M.icon_state.show_folder_arrows
end
function M.draw()

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