diff --git a/lua/plugins/fm-nvim.lua b/lua/plugins/fm-nvim.lua deleted file mode 100644 index a0dc56d..0000000 --- a/lua/plugins/fm-nvim.lua +++ /dev/null @@ -1,30 +0,0 @@ --- https://github.com/is0n/fm-nvim - ----@type LazyPluginSpec -return { - "is0n/fm-nvim", - keys = { - { - "fe", - function() - local file = vim.fn.expand("%:p") - if file ~= "" then vim.cmd.Lf(file) else vim.cmd.Lf() end - end, - mode = "n", - }, - }, - opts = { - -- UI Options - ui = { - float = { - -- Floating window border (see ':h nvim_open_win') - border = "single", - }, - }, - - -- Terminal commands used w/ file manager (have to be in your $PATH) - cmds = { - nnn_cmd = "n", - }, - }, -} diff --git a/lua/plugins/oil.lua b/lua/plugins/oil.lua new file mode 100644 index 0000000..5efb3b0 --- /dev/null +++ b/lua/plugins/oil.lua @@ -0,0 +1,43 @@ +-- https://github.com/NvChad/nvim-colorizer.lua + +---@type LazyPluginSpec +return { + "stevearc/oil.nvim", + keys = { + { + "fe", + function() + vim.cmd.Oil("--float") + end, + mode = "n", + }, + }, + opts = { + default_file_explorer = true, + columns = { + -- "icon", + "permissions", + "size", + "mtime", + }, + constrain_cursor = "name", + delete_to_trash = true, + float = { + padding = 10, + }, + skip_confirm_for_simple_edits = true, + watch_for_changes = false, + keymaps = { + ["q"] = "actions.close", + [""] = false, + [""] = false, + [""] = "actions.refresh", + [""] = "actions.parent", + [""] = "actions.select", + }, + view_options = { + show_hidden = true, + natural_order = false, + }, + }, +}