From a62ae0f32fe937431e420120067c7415d2ac24ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Sun, 21 Feb 2021 23:36:04 +0100 Subject: [PATCH] feat: change default map for context menu refer: #1541 --- autoload/vimtex.vim | 3 +-- doc/vimtex.txt | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/autoload/vimtex.vim b/autoload/vimtex.vim index 7b8cf5471f..fb550a5050 100644 --- a/autoload/vimtex.vim +++ b/autoload/vimtex.vim @@ -121,6 +121,7 @@ function! s:init_default_mappings() abort " {{{1 call s:map(0, 'n', 'lX', '(vimtex-reload-state)') call s:map(1, 'n', 'ls', '(vimtex-toggle-main)') call s:map(0, 'n', 'lq', '(vimtex-log)') + call s:map(1, 'n', 'la', '(vimtex-context-menu)') call s:map(1, 'n', 'ds$', '(vimtex-env-delete-math)') call s:map(1, 'n', 'cs$', '(vimtex-env-change-math)') @@ -137,8 +138,6 @@ function! s:init_default_mappings() abort " {{{1 call s:map(1, 'n', '', '(vimtex-cmd-create)') call s:map(1, 'x', '', '(vimtex-cmd-create)') - call s:map(1, 'n', '', '(vimtex-context-menu)') - call s:map(1, 'n', 'dsd', '(vimtex-delim-delete)') call s:map(1, 'n', 'csd', '(vimtex-delim-change-math)') call s:map(1, 'n', 'tsd', '(vimtex-delim-toggle-modifier)') diff --git a/doc/vimtex.txt b/doc/vimtex.txt index 85e2682f6c..6979deb9ec 100644 --- a/doc/vimtex.txt +++ b/doc/vimtex.txt @@ -741,6 +741,7 @@ This feature is explained in more detail later, see |vimtex-imaps|. lx |(vimtex-reload)| `n` lX |(vimtex-reload-state)| `n` ls |(vimtex-toggle-main)| `n` + la |(vimtex-context-menu)| `n` dse |(vimtex-env-delete)| `n` dsc |(vimtex-cmd-delete)| `n` ds$ |(vimtex-env-delete-math)| `n` @@ -790,7 +791,6 @@ This feature is explained in more detail later, see |vimtex-imaps|. [/ |(vimtex-[/| `nxo` [* |(vimtex-[star| `nxo` K |(vimtex-doc-package)| `n` - |(vimtex-context-menu)| `n` ---------------------------------------------------------------------~ ------------------------------------------------------------------------------ @@ -4713,7 +4713,7 @@ CONTEXT MENU *vimtex-context-menu* VimTeX provides the command |:VimtexContextMenu| to open a context menu for the item below the cursor. The menu allows various actions relevant to the -current context. It is mapped by default to ``. +current context. It is mapped by default to `la`. The available contexts are listed below.