Skip to content

Commit

Permalink
Added keymap to escape terminal mode using ESC (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
Greve2001 authored Oct 22, 2023
1 parent 968070f commit 785f5e3
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion config/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,27 @@
colorschemes.dracula.enable = true;

keymaps = [
# Global Mappings
# Default mode is "" which means normal-visual-op
{
# Default mode is "" which means normal-visual-op
# Toggle NvimTree
key = "<C-n>";
action = "<CMD>NvimTreeToggle<CR>";
}
{
# Format file
key = "<space>fm";
action = "<CMD>lua vim.lsp.buf.format()<CR>";
}

# Terminal Mappings
{
# Escape terminal mode using ESC
mode = "t";
key = "<esc>";
action = "<C-\\><C-n>";
}

# {
# # Mode can be a string or a list of strings
# mode = "n";
Expand Down

0 comments on commit 785f5e3

Please sign in to comment.