feat(oil): replace lf with oil

This commit is contained in:
2024-09-10 08:37:23 +02:00
parent 4badcf4429
commit 72569a75b0
2 changed files with 43 additions and 30 deletions
-30
View File
@@ -1,30 +0,0 @@
-- https://github.com/is0n/fm-nvim
---@type LazyPluginSpec
return {
"is0n/fm-nvim",
keys = {
{
"<leader>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",
},
},
}
+43
View File
@@ -0,0 +1,43 @@
-- https://github.com/NvChad/nvim-colorizer.lua
---@type LazyPluginSpec
return {
"stevearc/oil.nvim",
keys = {
{
"<leader>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",
["<C-s>"] = false,
["<C-l>"] = false,
["<C-r>"] = "actions.refresh",
["<S-h>"] = "actions.parent",
["<S-l>"] = "actions.select",
},
view_options = {
show_hidden = true,
natural_order = false,
},
},
}