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