@@ -1,67 +0,0 @@
1--- oil.nvim - Edit your filesystem like a buffer
2-return {
3- 'stevearc/oil.nvim',
4- dependencies = { 'nvim-tree/nvim-web-devicons' },
5- config = function()
6- require('oil').setup({
7- -- Oil will take over directory buffers (e.g. `vim .` or `:e src/`)
8- default_file_explorer = true,
9- -- Columns to show in oil buffer
10- columns = {
11- 'icon',
12- -- 'permissions',
13- -- 'size',
14- -- 'mtime',
15- },
16- -- Buffer-local options to use for oil buffers
17- buf_options = {
18- buflisted = false,
19- bufhidden = 'hide',
20- },
21- -- Window-local options to use for oil buffers
22- win_options = {
23- wrap = false,
24- signcolumn = 'no',
25- cursorcolumn = false,
26- foldcolumn = '0',
27- spell = false,
28- list = false,
29- conceallevel = 3,
30- concealcursor = 'nvic',
31- },
32- -- Send deleted files to the trash instead of permanently deleting them
33- delete_to_trash = false,
34- -- Skip confirmation for simple operations
35- skip_confirm_for_simple_edits = false,
36- -- Keymaps in oil buffer
37- keymaps = {
38- ['g?'] = 'actions.show_help',
39- ['<CR>'] = 'actions.select',
40- ['<C-s>'] = 'actions.select_vsplit',
41- ['<C-h>'] = 'actions.select_split',
42- ['<C-t>'] = 'actions.select_tab',
43- ['<C-p>'] = 'actions.preview',
44- ['<C-c>'] = 'actions.close',
45- ['<C-l>'] = 'actions.refresh',
46- ['-'] = 'actions.parent',
47- ['_'] = 'actions.open_cwd',
48- ['`'] = 'actions.cd',
49- ['~'] = 'actions.tcd',
50- ['gs'] = 'actions.change_sort',
51- ['gx'] = 'actions.open_external',
52- ['g.'] = 'actions.toggle_hidden',
53- ['g\\'] = 'actions.toggle_trash',
54- },
55- -- Set to false to disable all of the above keymaps
56- use_default_keymaps = true,
57- view_options = {
58- -- Show files and directories that start with "."
59- show_hidden = false,
60- },
61- })
62-
63- -- Keybindings
64- vim.keymap.set('n', '-', '<CMD>Oil<CR>', { desc = 'Open parent directory' })
65- vim.keymap.set('n', '<leader>n', '<CMD>Oil<CR>', { desc = 'Open oil file explorer' })
66- end,
67-}