From 209d631cb9f9e4c167c7129a47ef76677311a9ee Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Fri, 20 Feb 2026 20:27:55 -0500 Subject: [PATCH] fix(ci): format --- lua/oil/config.lua | 5 ++++- lua/oil/view.lua | 15 ++++++++++----- tests/close_spec.lua | 6 +----- 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/lua/oil/config.lua b/lua/oil/config.lua index d89f2a7..5c62b7e 100644 --- a/lua/oil/config.lua +++ b/lua/oil/config.lua @@ -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 diff --git a/lua/oil/view.lua b/lua/oil/view.lua index 2db8942..136c798 100644 --- a/lua/oil/view.lua +++ b/lua/oil/view.lua @@ -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 diff --git a/tests/close_spec.lua b/tests/close_spec.lua index 05f1d1a..ff14738 100644 --- a/tests/close_spec.lua +++ b/tests/close_spec.lua @@ -31,11 +31,7 @@ a.describe("close", function() oil.close() assert.equals("oil", vim.bo.filetype) end - vim.api.nvim_feedkeys( - vim.api.nvim_replace_termcodes("", true, true, true), - "n", - false - ) + vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes("", true, true, true), "n", false) a.util.sleep(20) end)