diff --git a/config/editor.nix b/config/editor.nix index 083491f..7b0460d 100644 --- a/config/editor.nix +++ b/config/editor.nix @@ -62,6 +62,14 @@ vimPlugins.faster-nvim ]; + autoCmd = [ + { + event = "FileType"; + pattern = "oil"; + command = "silent! lua vim.api.nvim_buf_set_keymap(0, 'n', 'e', ':bd', { noremap = true, silent = true })"; + } + ]; + keymaps = [ { key = "q"; @@ -211,7 +219,7 @@ }; } - # #################### Nvim Tree #################### + # #################### Oil #################### { key = "e"; action = "Oil";