feat(nvim): map jj/jk to escape

This commit is contained in:
Michael Mandl 2024-01-11 16:50:16 +01:00
parent 10c55a5a28
commit 22fff3f683
Signed by: mandlm
GPG key ID: 4AA25D647AA54CC7
2 changed files with 6 additions and 0 deletions

View file

@ -52,6 +52,9 @@
project-nvim project-nvim
auto-session auto-session
# escape handling
better-escape-nvim
nvim-treesitter.withAllGrammars nvim-treesitter.withAllGrammars
markdown-preview-nvim # use({ "iamcco/markdown-preview.nvim", run = ":call mkdp#util#install()" }) markdown-preview-nvim # use({ "iamcco/markdown-preview.nvim", run = ":call mkdp#util#install()" })
toggleterm-nvim toggleterm-nvim

View file

@ -64,3 +64,6 @@ nnoremap("gq", ":Bdelete<CR>")
-- toggle search highlighting -- toggle search highlighting
vim.cmd('nnoremap <expr> * v:hlsearch ? ":nohlsearch<cr>" : "*"') vim.cmd('nnoremap <expr> * v:hlsearch ? ":nohlsearch<cr>" : "*"')
-- insert-map jj/jk to escape
require("better_escape").setup()