Add more nvim shortcuts
This commit is contained in:
parent
3e0de91836
commit
9e49595f5d
2 changed files with 13 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
|||
# This file contains fish universal variable definitions.
|
||||
# VERSION: 3.0
|
||||
SETUVAR __fish_initialized:3100
|
||||
SETUVAR __fish_initialized:3400
|
||||
SETUVAR fish_color_autosuggestion:585858
|
||||
SETUVAR fish_color_cancel:\x2dr
|
||||
SETUVAR fish_color_command:a1b56c
|
||||
|
@ -29,4 +29,5 @@ SETUVAR fish_pager_color_completion:normal
|
|||
SETUVAR fish_pager_color_description:B3A06D\x1eyellow
|
||||
SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
|
||||
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
|
||||
SETUVAR fish_pager_color_selected_background:\x2dr
|
||||
SETUVAR fish_user_paths:/home/digyx/\x2ecargo/bin
|
||||
|
|
|
@ -15,9 +15,9 @@ set splitright
|
|||
set scrolloff=10
|
||||
|
||||
tnoremap <Esc> <C-\><C-n>
|
||||
command TMK w | call system("latexmk -pdf && latexmk -c")
|
||||
command SHH set nonu norelativenumber scl=no
|
||||
command NOSHH set nu relativenumber scl=auto
|
||||
command TMK w | call system("latexmk -pdf " . expand("%")) | call system("latexmk -c")
|
||||
command Shh set nonu norelativenumber scl=no
|
||||
command NoShh set nu relativenumber scl=auto
|
||||
|
||||
inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm()
|
||||
\: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
|
||||
|
@ -41,10 +41,14 @@ let g:coc_global_extensions = [
|
|||
nnoremap <silent> <Plug>(coc-hover) :<C-u>call CocActionAsync('definitionHover')<CR>
|
||||
|
||||
" GoTo code navigation.
|
||||
nmap <leader>gd <Plug>(coc-definition)
|
||||
nmap <leader>gt <Plug>(coc-type-definition)
|
||||
nmap <leader>gi <Plug>(coc-implementation)
|
||||
nmap <leader>gr <Plug>(coc-references)
|
||||
nmap gd <Plug>(coc-definition)
|
||||
nmap gt <Plug>(coc-type-definition)
|
||||
nmap gi <Plug>(coc-implementation)
|
||||
nmap gr <Plug>(coc-references)
|
||||
|
||||
" Diagnostic navigation
|
||||
nmap <silent> [g <Plug>(coc-diagnostic-prev)
|
||||
nmap <silent> ]g <Plug>(coc-diagnostic-next)
|
||||
|
||||
" Misc coc-commands
|
||||
nmap <leader>r <Plug>(coc-rename)
|
||||
|
|
Loading…
Reference in a new issue