Skip to content

Commit eb33612

Browse files
authored
chore: EmmyLuaCodeStyle style fixes following version update (#3221)
1 parent 59088b9 commit eb33612

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

lua/nvim-tree.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,8 @@ local function validate_options(conf)
657657

658658
if enum_value then
659659
if not vim.tbl_contains(enums, v) then
660-
invalid = string.format("Invalid value for field %s%s: Expected one of enum '%s', got '%s'", prefix, k, table.concat(enums, "'|'"), tostring(v))
660+
invalid = string.format("Invalid value for field %s%s: Expected one of enum '%s', got '%s'", prefix, k,
661+
table.concat(enums, "'|'"), tostring(v))
661662
end
662663
else
663664
if def[k] == nil and types[k] == nil then

lua/nvim-tree/actions/tree/modifiers/expand.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ end
4545
---@param node Node
4646
---@return boolean
4747
local function descend_until_empty(_, node)
48-
4948
local dir = node:as(DirectoryNode)
5049
if not dir then
5150
return false

lua/nvim-tree/explorer/live-filter.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,11 @@ local function create_overlay(self)
187187
})
188188

189189
if vim.fn.has("nvim-0.10") == 1 then
190-
vim.api.nvim_set_option_value("modifiable", true, { buf = overlay_bufnr })
191-
vim.api.nvim_set_option_value("filetype", "NvimTreeFilter", { buf = overlay_bufnr })
190+
vim.api.nvim_set_option_value("modifiable", true, { buf = overlay_bufnr })
191+
vim.api.nvim_set_option_value("filetype", "NvimTreeFilter", { buf = overlay_bufnr })
192192
else
193193
vim.api.nvim_buf_set_option(overlay_bufnr, "modifiable", true) ---@diagnostic disable-line: deprecated
194-
vim.api.nvim_buf_set_option(overlay_bufnr, "filetype", "NvimTreeFilter") ---@diagnostic disable-line: deprecated
194+
vim.api.nvim_buf_set_option(overlay_bufnr, "filetype", "NvimTreeFilter") ---@diagnostic disable-line: deprecated
195195
end
196196

197197
vim.api.nvim_buf_set_lines(overlay_bufnr, 0, -1, false, { self.filter })

lua/nvim-tree/node/directory-link.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ function DirectoryLinkNode:highlighted_name()
6868
link_to = utils.path_add_trailing(link_to)
6969
end
7070

71-
name.str = string.format("%s%s%s", name.str, self.explorer.opts.renderer.icons.symlink_arrow, link_to)
72-
name.hl = { "NvimTreeSymlinkFolderName" }
71+
name.str = string.format("%s%s%s", name.str, self.explorer.opts.renderer.icons.symlink_arrow, link_to)
72+
name.hl = { "NvimTreeSymlinkFolderName" }
7373
end
7474

7575
return name

lua/nvim-tree/renderer/decorator/copied.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ local CopiedDecorator = Decorator:extend()
1010
---@protected
1111
---@param args DecoratorArgs
1212
function CopiedDecorator:new(args)
13-
self.explorer = args.explorer
13+
self.explorer = args.explorer
1414

1515
self.enabled = true
1616
self.highlight_range = self.explorer.opts.renderer.highlight_clipboard or "none"

0 commit comments

Comments
 (0)