Revert vim bindings
This commit is contained in:
parent
5768d9ceea
commit
d080af17aa
|
@ -65,7 +65,6 @@ let
|
|||
"diagnostic.maxWindowHeight" = 60;
|
||||
"diagnostic.virtualText" = true;
|
||||
"diagnostic.virtualTextCurrentLineOnly" = false;
|
||||
"coc.preferences.hoverTarget" = "preview";
|
||||
"codeLens.enable" = true;
|
||||
languageserver = {
|
||||
markdown = {
|
||||
|
|
|
@ -34,7 +34,7 @@ augroup focus
|
|||
au BufLeave * silent! wall
|
||||
augroup END
|
||||
|
||||
nnoremap <silent><cr> :pc<CR>:nohlsearch<CR>
|
||||
nnoremap <silent><cr> :nohlsearch<CR>
|
||||
vnoremap < <gv
|
||||
vnoremap > >gv
|
||||
nnoremap <c-down> <c-w><c-j>
|
||||
|
@ -143,25 +143,7 @@ function! s:show_documentation()
|
|||
endif
|
||||
endfunction
|
||||
|
||||
"nmap <silent> <space>i :call <SID>show_documentation()<CR>
|
||||
autocmd CursorHold * silent call s:show_documentation()
|
||||
|
||||
function! Preview_func()
|
||||
if &pvw
|
||||
setlocal foldcolumn=0
|
||||
setlocal signcolumn=no
|
||||
setlocal nonumber
|
||||
let idealheight=line('$')+2
|
||||
let width=min([&columns-40])
|
||||
let left=&columns-width
|
||||
let height=min([idealheight,&lines-3,60])
|
||||
let top=&lines-2-height
|
||||
call nvim_win_set_config(0,{'relative': 'editor','width':width,'height':height,'row':top,'col':left})
|
||||
endif
|
||||
endfunction
|
||||
|
||||
autocmd BufWinEnter * call Preview_func()
|
||||
|
||||
nmap <silent> <space>i :call <SID>show_documentation()<CR>
|
||||
|
||||
" Remap for rename current word
|
||||
nmap <space>r <Plug>(coc-rename)
|
||||
|
|
Loading…
Reference in a new issue