Skip to content

Commit 7fce7a5

Browse files
committed
chore: style: align_continuous_similar_call_args
1 parent 3238527 commit 7fce7a5

File tree

6 files changed

+12
-11
lines changed

6 files changed

+12
-11
lines changed

.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ continuation_indent = 2
1818
quote_style = double
1919
call_arg_parentheses = always
2020
space_before_closure_open_parenthesis = false
21+
align_continuous_similar_call_args = true

lua/nvim-tree/actions/node/open-file.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,11 @@ local function pick_win_id()
133133
win_map[char] = id
134134

135135
if vim.fn.has("nvim-0.10") == 1 then
136-
vim.api.nvim_set_option_value("statusline", "%=" .. char .. "%=", { win = id })
137-
vim.api.nvim_set_option_value("winhl", "StatusLine:NvimTreeWindowPicker,StatusLineNC:NvimTreeWindowPicker", { win = id })
136+
vim.api.nvim_set_option_value("statusline", "%=" .. char .. "%=", { win = id })
137+
vim.api.nvim_set_option_value("winhl", "StatusLine:NvimTreeWindowPicker,StatusLineNC:NvimTreeWindowPicker", { win = id })
138138
else
139139
vim.api.nvim_win_set_option(id, "statusline", "%=" .. char .. "%=") ---@diagnostic disable-line: deprecated
140-
vim.api.nvim_win_set_option(id, "winhl", "StatusLine:NvimTreeWindowPicker,StatusLineNC:NvimTreeWindowPicker") ---@diagnostic disable-line: deprecated
140+
vim.api.nvim_win_set_option(id, "winhl", "StatusLine:NvimTreeWindowPicker,StatusLineNC:NvimTreeWindowPicker") ---@diagnostic disable-line: deprecated
141141
end
142142

143143
i = i + 1

lua/nvim-tree/explorer/sorters.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ local function split_merge(t, first, last, comparator)
105105

106106
local mid = math.floor((first + last) / 2)
107107

108-
split_merge(t, first, mid, comparator)
108+
split_merge(t, first, mid, comparator)
109109
split_merge(t, mid + 1, last, comparator)
110110
merge(t, first, mid, last, comparator)
111111
end

lua/nvim-tree/git/runner.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function Runner:_run_git_job(callback)
125125

126126
local opts = self:_getopts(stdout, stderr)
127127
log.line("git", "running job with timeout %dms", self.timeout)
128-
log.line("git", "git %s", table.concat(utils.array_remove_nils(opts.args), " "))
128+
log.line("git", "git %s", table.concat(utils.array_remove_nils(opts.args), " "))
129129

130130
handle, pid = vim.loop.spawn(
131131
"git",

lua/nvim-tree/legacy.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ local M = {}
66
-- silently move, please add to help nvim-tree-legacy-opts
77
local function refactored(opts)
88
-- 2022/06/20
9-
utils.move_missing_val(opts, "update_focused_file", "update_cwd", opts, "update_focused_file", "update_root", true)
10-
utils.move_missing_val(opts, "", "update_cwd", opts, "", "sync_root_with_cwd", true)
9+
utils.move_missing_val(opts, "update_focused_file", "update_cwd", opts, "update_focused_file", "update_root", true)
10+
utils.move_missing_val(opts, "", "update_cwd", opts, "", "sync_root_with_cwd", true)
1111

1212
-- 2022/11/07
13-
utils.move_missing_val(opts, "", "open_on_tab", opts, "tab.sync", "open", false)
14-
utils.move_missing_val(opts, "", "open_on_tab", opts, "tab.sync", "close", true)
13+
utils.move_missing_val(opts, "", "open_on_tab", opts, "tab.sync", "open", false)
14+
utils.move_missing_val(opts, "", "open_on_tab", opts, "tab.sync", "close", true)
1515
utils.move_missing_val(opts, "", "ignore_buf_on_tab_change", opts, "tab.sync", "ignore", true)
1616

1717
-- 2022/11/22

lua/nvim-tree/renderer/builder.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,8 +463,8 @@ function Builder:build_header()
463463
local filter_line = string.format("%s/%s/", self.opts.live_filter.prefix, self.explorer.live_filter.filter)
464464
table.insert(self.lines, filter_line)
465465
local prefix_length = string.len(self.opts.live_filter.prefix)
466-
self:insert_highlight({ "NvimTreeLiveFilterPrefix" }, 0, prefix_length)
467-
self:insert_highlight({ "NvimTreeLiveFilterValue" }, prefix_length, string.len(filter_line))
466+
self:insert_highlight({ "NvimTreeLiveFilterPrefix" }, 0, prefix_length)
467+
self:insert_highlight({ "NvimTreeLiveFilterValue" }, prefix_length, string.len(filter_line))
468468
self.index = self.index + 1
469469
end
470470
end

0 commit comments

Comments
 (0)