|
@@ -97,20 +97,11 @@ function! FernInit() abort
|
|
|
nmap <buffer><nowait> > <Plug>(fern-action-enter)
|
|
|
endfunction
|
|
|
|
|
|
-" use TAB to autocomplete w/ coc
|
|
|
-" inoremap <silent><expr> <TAB>
|
|
|
-" \ pumvisible() ? "\<C-n>" :
|
|
|
-" \ <SID>check_back_space() ? "\<TAB>" :
|
|
|
-" \ coc#refresh()
|
|
|
-" inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
|
|
|
-
|
|
|
-" function! s:check_back_space() abort
|
|
|
-" let col = col('.') - 1
|
|
|
-" return !col || getline('.')[col - 1] =~# '\s'
|
|
|
-" endfunction
|
|
|
-
|
|
|
+" use (shift-)TAB to autocomplete w/ coc
|
|
|
inoremap <expr> <Tab> coc#pum#visible() ? coc#pum#next(1) : "\<Tab>"
|
|
|
inoremap <expr> <S-Tab> coc#pum#visible() ? coc#pum#prev(1) : "\<S-Tab>"
|
|
|
+" use Ctrl + Space to trigger autocomplete box
|
|
|
+inoremap <silent><expr> <c-space> coc#refresh()
|
|
|
|
|
|
" Use `:Format` to format current buffer
|
|
|
command! -nargs=0 Format :call CocAction('format')
|