fix(ci): format

This commit is contained in:
Barrett Ruth 2026-02-20 20:27:55 -05:00
parent 38db6cf8ea
commit 209d631cb9
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
3 changed files with 15 additions and 11 deletions

View file

@ -417,7 +417,10 @@ M.setup = function(opts)
for k, v in pairs(opts.keymaps) do
local normalized = vim.api.nvim_replace_termcodes(k, true, true, true)
for existing_k, _ in pairs(new_conf.keymaps) do
if existing_k ~= k and vim.api.nvim_replace_termcodes(existing_k, true, true, true) == normalized then
if
existing_k ~= k
and vim.api.nvim_replace_termcodes(existing_k, true, true, true) == normalized
then
new_conf.keymaps[existing_k] = nil
end
end

View file

@ -78,10 +78,16 @@ local function are_any_modified()
end
local function is_unix_executable(entry)
if entry[FIELD_TYPE] == "directory" then return false end
if entry[FIELD_TYPE] == "directory" then
return false
end
local meta = entry[FIELD_META]
if not meta or not meta.stat then return false end
if meta.stat.type == "directory" then return false end
if not meta or not meta.stat then
return false
end
if meta.stat.type == "directory" then
return false
end
local S_IXUSR = 64
local S_IXGRP = 8
@ -692,8 +698,7 @@ local function render_buffer(bufnr, opts)
local parent_entry = { 0, "..", "directory" }
if M.should_display(bufnr, parent_entry) then
local cols =
M.format_entry_cols(parent_entry, column_defs, col_width, adapter, true, bufnr)
local cols = M.format_entry_cols(parent_entry, column_defs, col_width, adapter, true, bufnr)
table.insert(line_table, cols)
end