chore(luacheck): fix luacheck issues

This commit is contained in:
kiyan 2021-06-29 22:17:40 +02:00
parent b31003e43a
commit ed668a9c10
3 changed files with 4 additions and 3 deletions

View File

@ -8,6 +8,6 @@ ignore = {
} }
-- Global objects defined by the C code -- Global objects defined by the C code
read_globals = { globals = {
"vim", "vim",
} }

View File

@ -462,7 +462,8 @@ function M.sibling(node, direction)
local iter = get_line_from_node(node, true) local iter = get_line_from_node(node, true)
local node_path = node.absolute_path local node_path = node.absolute_path
local line, parent = 0, nil local line = 0
local parent, _
-- Check if current node is already at root entries -- Check if current node is already at root entries
for index, entry in ipairs(M.Tree.entries) do for index, entry in ipairs(M.Tree.entries) do

View File

@ -26,7 +26,7 @@ local icon_padding = vim.g.nvim_tree_icon_padding or " "
if icon_state.show_folder_icon then if icon_state.show_folder_icon then
get_folder_icon = function(open, is_symlink, has_children) get_folder_icon = function(open, is_symlink, has_children)
local n = "" local n
if is_symlink and open then if is_symlink and open then
n = icon_state.icons.folder_icons.symlink_open n = icon_state.icons.folder_icons.symlink_open
elseif is_symlink then elseif is_symlink then