Add shortcut for org-agenda and ESC mapping for nvim terminals

master
Ian Mancini 3 years ago
parent ebccf92d98
commit 03ee95cbc3

@ -145,6 +145,10 @@ bindsym $mod+Shift+d exec --no-startup-id dunstctl set-paused toggle
bindsym $mod+Control+grave exec --no-startup-id dunstctl history-pop bindsym $mod+Control+grave exec --no-startup-id dunstctl history-pop
bindsym $mod+grave exec --no-startup-id dunstctl close bindsym $mod+grave exec --no-startup-id dunstctl close
# org-agenda
bindsym $mod+Shift+o exec --no-startup-id org-agenda
############## ##############
# Workspaces # # Workspaces #
############## ##############

@ -11,3 +11,9 @@ require("toggleterm").setup{
border = 'single', border = 'single',
} }
} }
function _G.set_terminal_keymaps()
utils.map('t', '<esc>', [[<C-\><C-n>]])
end
vim.cmd('autocmd! TermOpen term://*toggleterm#* lua set_terminal_keymaps()')

Loading…
Cancel
Save