Add more SnipRun keymaps

This commit is contained in:
Evie Litherland-Smith 2022-11-08 16:46:15 +00:00
parent 95bc3ffb4c
commit 345ff1e831

View file

@ -13,10 +13,9 @@ end
vim.g.mapleader = ' '
-- Misc
imap('jk', '<Esc>')
nmap('<leader>sr', ':SnipRun<cr>')
nmap('<leader>gf', ':Git fetch<cr>')
nmap('<leader>gp', ':Git pull<cr>')
nmap('<leader>gP', ':Git push<cr>')
nmap('<leader>gf', '<cmd>Git fetch<cr>')
nmap('<leader>gp', '<cmd>Git pull<cr>')
nmap('<leader>gP', '<cmd>Git push<cr>')
-- Telescope
nmap('<leader>;', '<cmd>Telescope builtin<cr>')
@ -49,3 +48,7 @@ nmap('<leader>tt', '<cmd>TroubleToggle lsp_type_definitions<cr>')
nmap('<leader>ti', '<cmd>TroubleToggle lsp_implementations<cr>')
nmap('<leader>tdd', '<cmd>TroubleToggle document_diagnostics<cr>')
nmap('<leader>twd', '<cmd>TroubleToggle workspace_diagnostics<cr>')
-- SnipRun
nmap('<leader>srs', '<cmd>SnipRun<cr>')
nmap('<leader>srr', '<cmd>%SnipRun<cr>')