summaryrefslogtreecommitdiff
path: root/modules/coc.vim
diff options
context:
space:
mode:
Diffstat (limited to 'modules/coc.vim')
-rw-r--r--modules/coc.vim16
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/coc.vim b/modules/coc.vim
index 855127a0..12f553ac 100644
--- a/modules/coc.vim
+++ b/modules/coc.vim
@@ -21,16 +21,16 @@ set signcolumn=yes
"better nav for omnicomplete
inoremap <expr> <c-j> ("\<C-n>")
-inoremap <expr> <c-k> ("\<C-p>")
+inoremap <expr> <c-k> ("\<C-p>")
" Use tab for trigger completion with characters ahead and navigate.
" NOTE: Use command ':verbose imap <tab>' to make sure tab is not mapped by
" other plugin before putting this into your config.
-inoremap <silent><expr> <TAB>
- \ pumvisible() ? "\<C-n>" :
- \ <SID>check_back_space() ? "\<TAB>" :
- \ coc#refresh()
-inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
+"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
@@ -108,8 +108,8 @@ omap af <Plug>(coc-funcobj-a)
" Use <TAB> for selections ranges.
" NOTE: Requires 'textDocument/selectionRange' support from the language server.
" coc-tsserver, coc-python are the examples of servers that support it.
-nmap <silent> <TAB> <Plug>(coc-range-select)
-xmap <silent> <TAB> <Plug>(coc-range-select)
+"nmap <silent> <TAB> <Plug>(coc-range-select)
+"xmap <silent> <TAB> <Plug>(coc-range-select)
" Add `:Format` command to format current buffer.
command! -nargs=0 Format :call CocAction('format')