nvim: Unify file browsers and telescope as pickers
Since they are all used for file picking (among editing and creating) I'll just have them run under pickers for now. If the name turns out to be confusing or not descriptive anymore I can still change it at any time.
This commit is contained in:
parent
18f12f9068
commit
bec8f4e2e7
2 changed files with 25 additions and 27 deletions
|
@ -1,26 +0,0 @@
|
||||||
return {
|
|
||||||
{
|
|
||||||
"vifm/vifm.vim",
|
|
||||||
config = function()
|
|
||||||
vim.g.loaded_netrw = 1
|
|
||||||
vim.g.loaded_netrwPlugin = 1
|
|
||||||
vim.g.vifm_replace_netrw = 1
|
|
||||||
vim.g.vifm_exec_args = '-c "set vifminfo=" -c "set statusline=" -c "only"'
|
|
||||||
end,
|
|
||||||
cmd = "Vifm",
|
|
||||||
keys = {
|
|
||||||
{ "<leader>E", "<cmd>Vifm<cr>", desc = "buffer file browser" },
|
|
||||||
{ "<leader>vc", ":Vifm " .. vim.fn.stdpath("config") .. "<cr>", desc = "open config" },
|
|
||||||
},
|
|
||||||
event = { "BufEnter" },
|
|
||||||
}, -- integrate file manager
|
|
||||||
{
|
|
||||||
"nvim-tree/nvim-tree.lua", -- integrate file tree
|
|
||||||
config = true,
|
|
||||||
dependencies = { "nvim-tree/nvim-web-devicons", config = true },
|
|
||||||
cmd = "NvimTreeToggle",
|
|
||||||
keys = {
|
|
||||||
{ "<leader>se", "<cmd>NvimTreeToggle<cr>", desc = "filetree", silent = true },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
|
@ -1,5 +1,29 @@
|
||||||
return {
|
return {
|
||||||
-- fuzzy matching
|
{
|
||||||
|
"vifm/vifm.vim",
|
||||||
|
config = function()
|
||||||
|
vim.g.loaded_netrw = 1
|
||||||
|
vim.g.loaded_netrwPlugin = 1
|
||||||
|
vim.g.vifm_replace_netrw = 1
|
||||||
|
vim.g.vifm_exec_args = '-c "set vifminfo=" -c "set statusline=" -c "only"'
|
||||||
|
end,
|
||||||
|
cmd = "Vifm",
|
||||||
|
keys = {
|
||||||
|
{ "<leader>E", "<cmd>Vifm<cr>", desc = "buffer file browser" },
|
||||||
|
{ "<leader>vc", ":Vifm " .. vim.fn.stdpath("config") .. "<cr>", desc = "open config" },
|
||||||
|
},
|
||||||
|
event = { "BufEnter" },
|
||||||
|
}, -- integrate file manager
|
||||||
|
{
|
||||||
|
"nvim-tree/nvim-tree.lua", -- integrate file tree
|
||||||
|
config = true,
|
||||||
|
dependencies = { "nvim-tree/nvim-web-devicons", config = true },
|
||||||
|
cmd = "NvimTreeToggle",
|
||||||
|
keys = {
|
||||||
|
{ "<leader>se", "<cmd>NvimTreeToggle<cr>", desc = "filetree", silent = true },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
-- fuzzy matching picker
|
||||||
{
|
{
|
||||||
"nvim-telescope/telescope.nvim",
|
"nvim-telescope/telescope.nvim",
|
||||||
dependencies = {
|
dependencies = {
|
Loading…
Reference in a new issue