1
Fork 0
satellite/home/features/neovim/config/lua/my/plugins/mini-files.lua

31 lines
559 B
Lua
Raw Normal View History

2023-08-29 14:24:30 +02:00
local K = require("my.keymaps")
2023-08-30 12:08:50 +02:00
local env = require("my.helpers.env")
2023-08-29 14:24:30 +02:00
local M = {
"echasnovski/mini.files",
2023-12-10 12:55:54 +01:00
keys = { "<C-S-F>" },
2023-08-30 12:08:50 +02:00
cond = env.vscode.not_active() and env.firenvim.not_active(),
2023-08-29 14:24:30 +02:00
}
function M.config()
local files = require("mini.files")
files.setup({
windows = {
2023-08-30 12:08:50 +02:00
preview = false,
2023-08-29 14:24:30 +02:00
},
2023-09-22 18:37:24 +02:00
mappings = {
2023-11-08 07:16:48 +01:00
go_in_plus = "l",
2023-09-22 18:37:24 +02:00
},
2023-08-29 14:24:30 +02:00
})
K.nmap("<C-S-F>", function()
if not files.close() then
files.open(vim.api.nvim_buf_get_name(0))
files.reveal_cwd()
end
end, "[S]earch [F]iles")
end
return M