1
0
Fork 0

Revert vim bindings

This commit is contained in:
Malte Brandy 2021-01-23 00:04:19 +01:00
parent 5768d9ceea
commit d080af17aa
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9
2 changed files with 2 additions and 21 deletions

View file

@ -65,7 +65,6 @@ let
"diagnostic.maxWindowHeight" = 60;
"diagnostic.virtualText" = true;
"diagnostic.virtualTextCurrentLineOnly" = false;
"coc.preferences.hoverTarget" = "preview";
"codeLens.enable" = true;
languageserver = {
markdown = {

View file

@ -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)