nvim: fix "open in alacritty" keymap

This commit is contained in:
PowerUser64 2023-04-26 21:48:25 -07:00
parent e85b89a104
commit d0a2ed67d3

View file

@ -87,7 +87,7 @@ vim.cmd 'nnoremap <M-s> :%s//g<Left><Left>'
vim.cmd 'nnoremap <M-w> ye:%s//g<Left><Left><C-r>"/'
-- open current file with nvim in alacritty (useful if it gets opened in some other terminal)
vim.cmd 'nnoremap <M-a> <cmd>!nohup alacritty -e nvim % > /dev/null 2>&1 &; disown<CR><cmd>q<CR>'
vim.cmd "nnoremap <M-a> <cmd>!nohup alacritty -e nvim '%' > /dev/null 2>&1 &; disown<CR><cmd>q<CR>"
-- Escape to enter normal mode in the terminal
vim.cmd 'tnoremap <C-\\> <C-\\><C-n>'