Skip to content

Commit

Permalink
Added keymap to escape terminal mode using ESC
Browse files Browse the repository at this point in the history
  • Loading branch information
Greve2001 committed Oct 22, 2023
1 parent 968070f commit 5ec4c69
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions config/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,24 @@
colorschemes.dracula.enable = true;

keymaps = [
{
# Default mode is "" which means normal-visual-op
# Global Mappings
# 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 5ec4c69

Please sign in to comment.