fix: formatting
This commit is contained in:
parent
3ecf22ced1
commit
d4d02cd4d1
@ -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()
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user