fix(ci): format
This commit is contained in:
parent
38db6cf8ea
commit
209d631cb9
3 changed files with 15 additions and 11 deletions
|
|
@ -417,7 +417,10 @@ M.setup = function(opts)
|
||||||
for k, v in pairs(opts.keymaps) do
|
for k, v in pairs(opts.keymaps) do
|
||||||
local normalized = vim.api.nvim_replace_termcodes(k, true, true, true)
|
local normalized = vim.api.nvim_replace_termcodes(k, true, true, true)
|
||||||
for existing_k, _ in pairs(new_conf.keymaps) do
|
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
|
new_conf.keymaps[existing_k] = nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -78,10 +78,16 @@ local function are_any_modified()
|
||||||
end
|
end
|
||||||
|
|
||||||
local function is_unix_executable(entry)
|
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]
|
local meta = entry[FIELD_META]
|
||||||
if not meta or not meta.stat then return false end
|
if not meta or not meta.stat then
|
||||||
if meta.stat.type == "directory" then return false end
|
return false
|
||||||
|
end
|
||||||
|
if meta.stat.type == "directory" then
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
local S_IXUSR = 64
|
local S_IXUSR = 64
|
||||||
local S_IXGRP = 8
|
local S_IXGRP = 8
|
||||||
|
|
@ -692,8 +698,7 @@ local function render_buffer(bufnr, opts)
|
||||||
|
|
||||||
local parent_entry = { 0, "..", "directory" }
|
local parent_entry = { 0, "..", "directory" }
|
||||||
if M.should_display(bufnr, parent_entry) then
|
if M.should_display(bufnr, parent_entry) then
|
||||||
local cols =
|
local cols = M.format_entry_cols(parent_entry, column_defs, col_width, adapter, true, bufnr)
|
||||||
M.format_entry_cols(parent_entry, column_defs, col_width, adapter, true, bufnr)
|
|
||||||
table.insert(line_table, cols)
|
table.insert(line_table, cols)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,11 +31,7 @@ a.describe("close", function()
|
||||||
oil.close()
|
oil.close()
|
||||||
assert.equals("oil", vim.bo.filetype)
|
assert.equals("oil", vim.bo.filetype)
|
||||||
end
|
end
|
||||||
vim.api.nvim_feedkeys(
|
vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes("<Esc>", true, true, true), "n", false)
|
||||||
vim.api.nvim_replace_termcodes("<Esc>", true, true, true),
|
|
||||||
"n",
|
|
||||||
false
|
|
||||||
)
|
|
||||||
a.util.sleep(20)
|
a.util.sleep(20)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue