Update dots:
Add options to not save some filetypes in auto session Remove CMP from command line and search, alsow update wilemenu Remove Oil.nvim and make nvim-tree the default file explorer Add some git pickers from telescope
This commit is contained in:
parent
ea8bd3a653
commit
9c023c015c
8 changed files with 21 additions and 73 deletions
|
|
@ -6,7 +6,10 @@ return {
|
|||
dependencies = {
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
},
|
||||
lazy = false,
|
||||
keys = {
|
||||
{ "<Leader>e", "<CMD>NvimTreeToggle<CR>", desc = "Open file explorer" },
|
||||
},
|
||||
cmd = { "NvimTreeToggle", "Tree" },
|
||||
config = function()
|
||||
local tree = require("nvim-tree")
|
||||
local api = require("nvim-tree.api")
|
||||
|
|
@ -94,47 +97,4 @@ return {
|
|||
-- vim.keymap.set("n", "<C-e>", ":NvimTreeToggle<CR>", { desc = "Toggle file tree", silent = true })
|
||||
end,
|
||||
},
|
||||
{
|
||||
"stevearc/oil.nvim",
|
||||
opts = function()
|
||||
local oil = require("oil")
|
||||
return {
|
||||
win_options = {
|
||||
number = false,
|
||||
},
|
||||
delete_to_trash = true,
|
||||
trash_command = "trash",
|
||||
skip_confirm_for_simple_edits = false,
|
||||
keymaps = {
|
||||
["g?"] = "actions.show_help",
|
||||
["<CR>"] = "actions.select",
|
||||
["l"] = "actions.select",
|
||||
["<C-CR>"] = "actions.open_external",
|
||||
["<C-s>"] = function()
|
||||
oil.select({ vertical = true })
|
||||
vim.cmd.wincmd({ args = { "p" } })
|
||||
oil.close()
|
||||
vim.cmd.wincmd({ args = { "p" } })
|
||||
end,
|
||||
["<C-v>"] = "actions.select_split",
|
||||
["<C-t>"] = "actions.select_tab",
|
||||
["<C-p>"] = "actions.preview",
|
||||
["<C-d>"] = "actions.preview_scroll_down",
|
||||
["<C-u>"] = "actions.preview_scroll_up",
|
||||
["<Esc>"] = "actions.close",
|
||||
["<C-r>"] = "actions.refresh",
|
||||
["y"] = "actions.copy_entry_path",
|
||||
["h"] = "actions.parent",
|
||||
["gs"] = "actions.change_sort",
|
||||
["gx"] = "actions.open_external",
|
||||
["g."] = "actions.toggle_hidden",
|
||||
},
|
||||
}
|
||||
end,
|
||||
-- Optional dependencies
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
keys = {
|
||||
{ "<Leader>e", "<CMD>Oil<CR>", desc = "Open file explorer" },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue