Tweaked vim config a bunch
This commit is contained in:
parent
c4e8869820
commit
f76340f145
7 changed files with 107 additions and 113 deletions
dotfiles/neovim/lua/my/plugins
29
dotfiles/neovim/lua/my/plugins/mini-files.lua
Normal file
29
dotfiles/neovim/lua/my/plugins/mini-files.lua
Normal file
|
@ -0,0 +1,29 @@
|
|||
local K = require("my.keymaps")
|
||||
local env = require("my.helpers.env")
|
||||
|
||||
local M = {
|
||||
"echasnovski/mini.files",
|
||||
version = "main",
|
||||
event = "VeryLazy",
|
||||
cond = env.vscode.not_active() and env.firenvim.not_active(),
|
||||
}
|
||||
|
||||
function M.config()
|
||||
local files = require("mini.files")
|
||||
|
||||
files.setup({
|
||||
windows = {
|
||||
preview = false,
|
||||
},
|
||||
mappings = {},
|
||||
})
|
||||
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue