Skip to content

Commit

Permalink
🔧 (snacks): close input with escape
Browse files Browse the repository at this point in the history
thanks autcmd
  • Loading branch information
elythh committed Jan 25, 2025
1 parent 4e70849 commit a8e1fd1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/nixvim/autocommands.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
pattern = "TelescopePrompt";
command = "inoremap <buffer><silent> <ESC> <ESC>:close!<CR>";
}
{
event = [ "FileType" ];
pattern = "snacks_picker_input";
command = "inoremap <buffer><silent> <ESC> <ESC>:close!<CR>";
}

# Enable spellcheck for some filetypes
{
Expand Down

0 comments on commit a8e1fd1

Please sign in to comment.