increase basedness of keybinds
This commit is contained in:
parent
f8fe872aff
commit
b0c5edc100
@ -18,14 +18,13 @@ set number relativenumber
|
||||
windo set nowrap
|
||||
set showcmd
|
||||
set mouse=a
|
||||
set cursorline
|
||||
" :set cursorline
|
||||
set foldmethod=syntax
|
||||
set updatetime=250
|
||||
set tabstop=4 shiftwidth=4 smarttab
|
||||
highlight Comment ctermfg=Grey
|
||||
nnoremap <silent> <leader>p :split +term <CR>
|
||||
|
||||
|
||||
" =============== NERDTree ================================================
|
||||
" Toggle file browser
|
||||
nnoremap <silent> <leader>e :NERDTreeToggle<CR>
|
||||
@ -35,10 +34,10 @@ let g:onedark_config = {
|
||||
\ 'style': 'warmer',
|
||||
\}
|
||||
colorscheme onedark
|
||||
hi CocFloating guibg=#151515 guifg=clear
|
||||
hi Pmenu guibg=#151515 guifg=clear
|
||||
hi @parameter guifg=#ed6215
|
||||
hi CursorColumn guibg=#e2c792 guifg=#232326
|
||||
hi CocFloating guibg=#151515 guifg=clear
|
||||
hi Pmenu guibg=#151515 guifg=clear
|
||||
" hi @parameter guifg=#ed6215
|
||||
hi CursorColumn guibg=#e2c792 guifg=#232326
|
||||
|
||||
" =============== NERDTree Config ================================================
|
||||
let NERDTreeShowHidden=1
|
||||
@ -63,16 +62,16 @@ endfunction
|
||||
autocmd CursorHold * silent call CocActionAsync('highlight')
|
||||
|
||||
" coc rename
|
||||
nnoremap <silent> <leader>r <Plug>(coc-rename)
|
||||
nmap <leader>r <Plug>(coc-rename)
|
||||
" Jump between references and definiton
|
||||
nnoremap <silent> <C-k> :call CocActionAsync('jumpReferences')<CR>
|
||||
nnoremap <silent> K :call CocActionAsync('jumpDefinition')<CR>
|
||||
nnoremap <leader>j :call CocActionAsync('jumpReferences')<CR>
|
||||
nnoremap <leader>k :call CocActionAsync('jumpDefinition')<CR>
|
||||
" show help menu
|
||||
nnoremap <C-u> :call CocActionAsync('codeAction', 'cursor')<CR>
|
||||
|
||||
nnoremap <leader>d :call CocActionAsync('codeAction', 'cursor')<CR>
|
||||
nnoremap <leader>a :call CocActionAsync('runCommand', 'editor.action.formatDocument')<CR>
|
||||
|
||||
" Show Documentation
|
||||
nnoremap <silent> J :call ShowDocumentation()<CR>
|
||||
nnoremap <leader>f :call ShowDocumentation()<CR>
|
||||
function! ShowDocumentation() " Show hover when provider exists, fallback to vim's builtin behavior.
|
||||
if CocAction('hasProvider', 'hover')
|
||||
call CocActionAsync('definitionHover')
|
||||
|
Loading…
x
Reference in New Issue
Block a user