chore: stylua column width 120 -> 140

This commit is contained in:
Alexander Courtis
2023-10-07 14:54:58 +11:00
parent 85abe29396
commit d4871d726b
12 changed files with 16 additions and 69 deletions

View File

@@ -176,9 +176,7 @@ function M.rename_loaded_buffers(old_path, new_path)
if vim.api.nvim_buf_is_loaded(buf) then
local buf_name = vim.api.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
)
local child_match = (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
vim.api.nvim_buf_set_name(buf, new_path .. buf_name:sub(#old_path + 1))
-- to avoid the 'overwrite existing file' error message on write for