Skip to content

Commit

Permalink
Properly escape backtick in keybinding
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPickles committed Dec 16, 2021
1 parent b84306d commit 66efd5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nvim/lua/keybindings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ vim.api.nvim_set_keymap('n', '<C-n>', ':NvimTreeToggle<CR>', { noremap = true })

-- Remap <ctrl-c> to <esc>. This prevents cmp-buffer from running into errors.
-- https://github.com/hrsh7th/cmp-buffer/issues/30#issuecomment-994011089
vim.api.nvim_set_keymap('i', '<C-c>', '<Esc>`^', { noremap = true })
vim.api.nvim_set_keymap('i', '<C-c>', '<Esc>\\`^', { noremap = true })

0 comments on commit 66efd5a

Please sign in to comment.