diff --git a/.exp-coc-config b/.exp-coc-config index f0454d5..7424ac4 100644 --- a/.exp-coc-config +++ b/.exp-coc-config @@ -23,20 +23,6 @@ set shortmess+=c " diagnostics appear/become resolved. "set signcolumn=yes -" Use tab for trigger completion with characters ahead and navigate. -" NOTE: Use command ':verbose imap ' to make sure tab is not mapped by -" other plugin before putting this into your config. -inoremap - \ pumvisible() ? "\" : - \ check_back_space() ? "\" : - \ coc#refresh() -inoremap pumvisible() ? "\" : "\" - -function! s:check_back_space() abort - let col = col('.') - 1 - return !col || getline('.')[col - 1] =~# '\s' -endfunction - " Use to trigger completion. if has('nvim') inoremap coc#refresh() diff --git a/.vimrc.bundles b/.vimrc.bundles index 70a0ab3..b2db89b 100644 --- a/.vimrc.bundles +++ b/.vimrc.bundles @@ -186,6 +186,10 @@ endif " coc-clangd: c/c++, may need to install clangd seperatly let g:coc_global_extensions = ['coc-pyright', 'coc-rls', 'coc-clangd', 'coc-tsserver', 'coc-html', 'coc-cmake', 'coc-json', 'coc-sh'] + let g:coc_user_config = { + \ 'suggest.noselect': v:true, + \ 'suggest.enablePreselect': v:false } + if filereadable(expand(config_dir . "/.exp-coc-config")) exec "source " . config_dir . "/.exp-coc-config" endif diff --git a/config/coc/setting.json b/config/coc/setting.json new file mode 100644 index 0000000..49a5b69 --- /dev/null +++ b/config/coc/setting.json @@ -0,0 +1,4 @@ +{ + "suggest.noselect": true, + "suggest.enablePreselect": false +}