Skip to content

Commit

Permalink
feat(editor): leader+e closes oil as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyxels committed Dec 3, 2024
1 parent c05cb67 commit 9c42160
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion config/editor.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@
vimPlugins.faster-nvim
];

autoCmd = [
{
event = "FileType";
pattern = "oil";
command = "silent! lua vim.api.nvim_buf_set_keymap(0, 'n', '<Leader>e', ':bd<CR>', { noremap = true, silent = true })";
}
];

keymaps = [
{
key = "<Leader>q";
Expand Down Expand Up @@ -211,7 +219,7 @@
};
}

# #################### Nvim Tree ####################
# #################### Oil ####################
{
key = "<Leader>e";
action = "<cmd>Oil<cr>";
Expand Down

0 comments on commit 9c42160

Please sign in to comment.