Merge branch 'dev' of https://github.com/Donaldttt/dotfiles into dev
This commit is contained in:
@@ -23,20 +23,6 @@ set shortmess+=c
|
|||||||
" diagnostics appear/become resolved.
|
" diagnostics appear/become resolved.
|
||||||
"set signcolumn=yes
|
"set signcolumn=yes
|
||||||
|
|
||||||
" 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>"
|
|
||||||
|
|
||||||
function! s:check_back_space() abort
|
|
||||||
let col = col('.') - 1
|
|
||||||
return !col || getline('.')[col - 1] =~# '\s'
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
" Use <c-space> to trigger completion.
|
" Use <c-space> to trigger completion.
|
||||||
if has('nvim')
|
if has('nvim')
|
||||||
inoremap <silent><expr> <c-space> coc#refresh()
|
inoremap <silent><expr> <c-space> coc#refresh()
|
||||||
|
|||||||
@@ -186,6 +186,10 @@ endif
|
|||||||
" coc-clangd: c/c++, may need to install clangd seperatly
|
" 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_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"))
|
if filereadable(expand(config_dir . "/.exp-coc-config"))
|
||||||
exec "source " . config_dir . "/.exp-coc-config"
|
exec "source " . config_dir . "/.exp-coc-config"
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"suggest.noselect": true,
|
||||||
|
"suggest.enablePreselect": false
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user