nvim: Clean up commands for searching word under cursor
This commit is contained in:
parent
801f9725b4
commit
7bc8295486
4 changed files with 8 additions and 8 deletions
|
@ -8,8 +8,8 @@ nmap <buffer> <LocalLeader>h :AsyncDo hlint %<CR>
|
|||
nmap <buffer> <LocalLeader>g :Ghcid<CR>
|
||||
nmap <buffer> <LocalLeader>k :GhcidKill<CR>
|
||||
nmap <buffer> <LocalLeader>c :HoogleClose<CR>
|
||||
nmap <buffer> <LocalLeader>o :exe ':Hoogle ' . expand('<cword>')<CR>
|
||||
nmap <buffer> <LocalLeader>i :exe ':HoogleInfo ' . expand('<cword>')<CR>
|
||||
nmap <buffer> <LocalLeader>o :<C-u>Hoogle <C-r><C-w><CR>
|
||||
nmap <buffer> <LocalLeader>i :<C-u>HoogleInfo <C-r><C-w><CR>
|
||||
|
||||
" Taken from https://github.com/danidiaz/miscellany/blob/master/linux/.vim/ftplugin/haskell/movements.vim
|
||||
" Next top-level type signature
|
||||
|
|
|
@ -36,7 +36,7 @@ remap('n', '[t', ':tprevious<CR>', { noremap = true })
|
|||
remap('n', ']t', ':tNext<CR>', { noremap = true })
|
||||
remap('n', '[T', ':tfirst<CR>', { noremap = true })
|
||||
remap('n', ']T', ':tlast<CR>', { noremap = true })
|
||||
remap('n', '<Leader>ts', ':exec(\"tselect \".expand(\"<cword>\"))', { noremap = true })
|
||||
remap('n', '<Leader>ts', ':<C-u>tselect <C-r><C-w><CR>', { noremap = true })
|
||||
-- Quickfix list mappings
|
||||
remap('n', 'qo', ':copen<CR>', { noremap = true })
|
||||
remap('n', 'qc', ':cclose<CR>', { noremap = true })
|
||||
|
@ -91,8 +91,8 @@ remap('n', '<Left>', '<NOP>', { noremap = true })
|
|||
remap('n', '<Right>', '<NOP>', { noremap = true })
|
||||
|
||||
-- Tag helpers
|
||||
remap('n', '<C-\\>', ':vsp <CR>:exec(\"tag \".expand(\"<cword>\"))<CR>', { noremap = true })
|
||||
remap('n', '<A-]>', ':sp <CR>:exec(\"tag \".expand(\"<cword>\"))<CR>', { noremap = true })
|
||||
remap('n', '<C-\\>', ':vsp <CR>:<C-u>tag <C-r><C-w><CR>', { noremap = true })
|
||||
remap('n', '<A-]>', ':sp <CR>:<C-u>tag <C-r><C-w><CR>', { noremap = true })
|
||||
|
||||
remap('n', '<Leader>n', ':nohlsearch<CR>', { noremap = true, silent = true })
|
||||
|
||||
|
|
|
@ -7,5 +7,5 @@ remap('n', '<Leader>f\\', ':FZFRg<CR>', { noremap = true })
|
|||
remap('n', '<Leader>fT', ':FZFTags<SPACE>', { noremap = true })
|
||||
remap('n', '<Leader>fq', ':cclose<CR>:FZFQuickFix<CR>', { noremap = true })
|
||||
remap('n', '<Leader>fQ', ':lclose<CR>:FZFLocList<CR>', { noremap = true })
|
||||
remap('n', '<Leader>fS', ':exe \':FZFRg \' . expand(\'<cword>\')<CR>', { noremap = true })
|
||||
remap('n', '<Leader>ft', ':exe \':FZFTags \' . expand(\'<cword>\')<CR>', { noremap = true })
|
||||
remap('n', '<Leader>fS', ':<C-u>FZFRg <C-r><C-w><CR>', { noremap = true })
|
||||
remap('n', '<Leader>ft', ':<C-u>FZFTags <C-r><C-w><CR>', { noremap = true })
|
||||
|
|
|
@ -22,7 +22,7 @@ remap('n', '<Leader>fm', ':Commands<CR>', { noremap = true })
|
|||
remap('n', '<Leader>fo', ':Locate<CR>', { noremap = true })
|
||||
remap('n', '<Leader>fk', ':Maps<CR>', { noremap = true })
|
||||
remap('n', '<Leader>f/', ':Rg<CR>', { noremap = true })
|
||||
remap('n', '<Leader>fs', ':exe \':Rg \' . expand(\'<cword>\')<CR>', { noremap = true })
|
||||
remap('n', '<Leader>fs', ':<C-u>Rg <C-r><C-w><CR>', { noremap = true })
|
||||
|
||||
remap('i', '<C-x><C-w>', '<Plug>(fzf-complete-word)', { noremap = false })
|
||||
remap('i', '<C-x><C-p>', '<Plug>(fzf-complete-path)', { noremap = false })
|
||||
|
|
Loading…
Reference in a new issue