Revert "nvim: keymappings: Drop all key mappings for tags"
This reverts commit 3657612dbb
.
We want to use fast-tags with Haskell.
This commit is contained in:
parent
691e92d436
commit
99531be4ad
1 changed files with 17 additions and 0 deletions
|
@ -43,6 +43,12 @@ remap('n', '<Leader>tc', ':tabclose<CR>' , opts)
|
||||||
-- Jump to first tab & close all other tabs. Helpful after running Git
|
-- Jump to first tab & close all other tabs. Helpful after running Git
|
||||||
-- difftool.
|
-- difftool.
|
||||||
remap('n', '<Leader>T', ':tabfirst<CR>:tabonly<CR>', opts)
|
remap('n', '<Leader>T', ':tabfirst<CR>:tabonly<CR>', opts)
|
||||||
|
-- For tags
|
||||||
|
remap('n', '[t', ':tprevious<CR>', opts)
|
||||||
|
remap('n', ']t', ':tNext<CR>' , opts)
|
||||||
|
remap('n', '[T', ':tfirst<CR>' , opts)
|
||||||
|
remap('n', ']T', ':tlast<CR>' , opts)
|
||||||
|
remap('n', '<Leader>ts', ':<C-u>tselect <C-r><C-w><CR>', opts)
|
||||||
-- Quickfix list mappings
|
-- Quickfix list mappings
|
||||||
remap('n', 'qo', ':copen<CR>' , opts)
|
remap('n', 'qo', ':copen<CR>' , opts)
|
||||||
remap('n', 'qc', ':cclose<CR>' , opts)
|
remap('n', 'qc', ':cclose<CR>' , opts)
|
||||||
|
@ -57,6 +63,13 @@ remap('n', '[l', ':lprevious<CR>', opts)
|
||||||
remap('n', ']l', ':lnext<CR>' , opts)
|
remap('n', ']l', ':lnext<CR>' , opts)
|
||||||
remap('n', '[L', ':lfirst<CR>' , opts)
|
remap('n', '[L', ':lfirst<CR>' , opts)
|
||||||
remap('n', ']L', ':lfirst<CR>' , opts)
|
remap('n', ']L', ':lfirst<CR>' , opts)
|
||||||
|
-- Preview tags
|
||||||
|
remap('n', 'pt', ':ptag <C-R><C-W><CR>' , opts)
|
||||||
|
remap('n', '[p', ':ptprevious<CR>' , opts)
|
||||||
|
remap('n', ']p', ':ptnext<CR>' , opts)
|
||||||
|
remap('n', 'po', ':ppop<CR>' , opts)
|
||||||
|
remap('n', 'pc', ':pc<CR>' , opts)
|
||||||
|
remap('n', 'pi', ':psearch <C-R><C-W><CR>', opts)
|
||||||
-- Short cuts for setting fold methods
|
-- Short cuts for setting fold methods
|
||||||
remap('n', 'zmi', ':set foldmethod=indent<CR>', opts)
|
remap('n', 'zmi', ':set foldmethod=indent<CR>', opts)
|
||||||
remap('n', 'zmm', ':set foldmethod=manual<CR>', opts)
|
remap('n', 'zmm', ':set foldmethod=manual<CR>', opts)
|
||||||
|
@ -79,6 +92,10 @@ remap('n', '<Space>7', '7<C-w>w', opts)
|
||||||
remap('n', '<Space>8', '8<C-w>w', opts)
|
remap('n', '<Space>8', '8<C-w>w', opts)
|
||||||
remap('n', '<Space>9', '9<C-w>w', opts)
|
remap('n', '<Space>9', '9<C-w>w', opts)
|
||||||
|
|
||||||
|
-- Tag helpers
|
||||||
|
remap('n', '<C-\\>', ':vsp <CR>:<C-u>tag <C-r><C-w><CR>', opts)
|
||||||
|
remap('n', '<A-]>' , ':sp <CR>:<C-u>tag <C-r><C-w><CR>' , opts)
|
||||||
|
|
||||||
-- Move across wrapped lines like regular lines
|
-- Move across wrapped lines like regular lines
|
||||||
-- Go to the first non-blank character of a line
|
-- Go to the first non-blank character of a line
|
||||||
remap('n', '0', '^', opts)
|
remap('n', '0', '^', opts)
|
||||||
|
|
Loading…
Reference in a new issue