initial commit
This commit is contained in:
49
lua/plugins/oil.lua
Normal file
49
lua/plugins/oil.lua
Normal file
@@ -0,0 +1,49 @@
|
||||
return {
|
||||
'stevearc/oil.nvim',
|
||||
---@module 'oil'
|
||||
---@type oil.SetupOpts
|
||||
opts = {
|
||||
columns = {
|
||||
"icon",
|
||||
"permissions",
|
||||
},
|
||||
default_file_explorer = true,
|
||||
view_options = {
|
||||
show_hidden = true,
|
||||
},
|
||||
win_options = {
|
||||
wrap = false,
|
||||
signcolumn = "yes",
|
||||
cursorcolumn = false,
|
||||
foldcolumn = "0",
|
||||
spell = false,
|
||||
list = false,
|
||||
conceallevel = 3,
|
||||
concealcursor = "nvic",
|
||||
},
|
||||
delete_to_trash = false,
|
||||
skip_confirm_for_simple_edits = false,
|
||||
prompt_save_for_select_new_entry = true,
|
||||
lsp_file_methods = {
|
||||
enabled = true,
|
||||
timeout_ms = 1000,
|
||||
autosave_changes = false,
|
||||
},
|
||||
constrain_cursor = "editable",
|
||||
watch_for_changes = false,
|
||||
keymaps = {
|
||||
["g"] = { "actions.show_help", mode = "n" },
|
||||
["<CR>"] = "actions.select",
|
||||
["<C-p>"] = "actions.preview",
|
||||
["-"] = { "actions.open_cwd", mode = "n" },
|
||||
["+"] = { "actions.cd", opts = { scope = "tab" }, mode = "n" },
|
||||
["_"] = "actions.parent",
|
||||
["*"] = "actions.open_terminal",
|
||||
},
|
||||
},
|
||||
keys = {
|
||||
{ "_", function() require("oil").open() end, desc = "open files" },
|
||||
},
|
||||
lazy = false,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user