You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
502 B
Lua
21 lines
502 B
Lua
require("oil").setup({
|
|
default_file_explorer = true,
|
|
delete_to_trash = true,
|
|
watch_for_changes = true,
|
|
skip_confirm_for_simple_edits = true,
|
|
columns = { "icon", "size" },
|
|
view_options = {
|
|
show_hidden = true,
|
|
},
|
|
keymaps = {
|
|
["<leader>-"] = function()
|
|
require("oil").open(vim.fn.getcwd())
|
|
end,
|
|
["<C-t>"] = function()
|
|
require("toggleterm").toggle(1, 15, require("oil").get_current_dir(), "horizontal")
|
|
end,
|
|
},
|
|
})
|
|
|
|
vim.keymap.set("n", "-", "<cmd>Oil<cr>")
|