tweak oil
This commit is contained in:
parent
684a6f3641
commit
e291f867b8
|
@ -9,9 +9,9 @@ return {
|
||||||
-- See :help oil-columns
|
-- See :help oil-columns
|
||||||
columns = {
|
columns = {
|
||||||
"icon",
|
"icon",
|
||||||
-- "permissions",
|
"permissions",
|
||||||
-- "size",
|
"size",
|
||||||
-- "mtime",
|
"mtime",
|
||||||
},
|
},
|
||||||
-- Buffer-local options to use for oil buffers
|
-- Buffer-local options to use for oil buffers
|
||||||
buf_options = {
|
buf_options = {
|
||||||
|
@ -32,7 +32,7 @@ return {
|
||||||
-- Send deleted files to the trash instead of permanently deleting them (:help oil-trash)
|
-- Send deleted files to the trash instead of permanently deleting them (:help oil-trash)
|
||||||
delete_to_trash = false,
|
delete_to_trash = false,
|
||||||
-- Skip the confirmation popup for simple operations (:help oil.skip_confirm_for_simple_edits)
|
-- Skip the confirmation popup for simple operations (:help oil.skip_confirm_for_simple_edits)
|
||||||
skip_confirm_for_simple_edits = false,
|
skip_confirm_for_simple_edits = true,
|
||||||
-- Selecting a new/moved/renamed file or directory will prompt you to save changes first
|
-- Selecting a new/moved/renamed file or directory will prompt you to save changes first
|
||||||
-- (:help prompt_save_on_select_new_entry)
|
-- (:help prompt_save_on_select_new_entry)
|
||||||
prompt_save_on_select_new_entry = true,
|
prompt_save_on_select_new_entry = true,
|
||||||
|
@ -61,8 +61,8 @@ return {
|
||||||
keymaps = {
|
keymaps = {
|
||||||
["g?"] = "actions.show_help",
|
["g?"] = "actions.show_help",
|
||||||
["<CR>"] = "actions.select",
|
["<CR>"] = "actions.select",
|
||||||
["<C-s>"] = "actions.select_vsplit",
|
["<C-v>"] = "actions.select_vsplit",
|
||||||
["<C-h>"] = "actions.select_split",
|
["<C-x>"] = "actions.select_split",
|
||||||
["<C-t>"] = "actions.select_tab",
|
["<C-t>"] = "actions.select_tab",
|
||||||
["<C-p>"] = "actions.preview",
|
["<C-p>"] = "actions.preview",
|
||||||
["<C-c>"] = "actions.close",
|
["<C-c>"] = "actions.close",
|
||||||
|
@ -80,7 +80,7 @@ return {
|
||||||
use_default_keymaps = true,
|
use_default_keymaps = true,
|
||||||
view_options = {
|
view_options = {
|
||||||
-- Show files and directories that start with "."
|
-- Show files and directories that start with "."
|
||||||
show_hidden = false,
|
show_hidden = true,
|
||||||
-- This function defines what is considered a "hidden" file
|
-- This function defines what is considered a "hidden" file
|
||||||
is_hidden_file = function(name, bufnr)
|
is_hidden_file = function(name, bufnr)
|
||||||
return vim.startswith(name, ".")
|
return vim.startswith(name, ".")
|
||||||
|
|
Loading…
Reference in New Issue