Added semantic highlighting to coc
This commit is contained in:
parent
8500c5965e
commit
5597a11e50
|
@ -1,3 +1,4 @@
|
|||
{
|
||||
"suggest.noselect": true
|
||||
"suggest.noselect": true,
|
||||
"semanticTokens.enable": true
|
||||
}
|
||||
|
|
7
vimrc
7
vimrc
|
@ -31,12 +31,13 @@ set autoindent
|
|||
set smartindent
|
||||
set tags=./tags,tags;$HOME
|
||||
|
||||
let g:gutentags_project_root = ['Makefile']
|
||||
|
||||
function! CheckBackspace() abort
|
||||
let col = col('.') - 1
|
||||
return !col || getline('.')[col - 1] =~# '\s'
|
||||
endfunction
|
||||
|
||||
|
||||
inoremap <silent><expr> <TAB>
|
||||
\ coc#pum#visible() ? coc#pum#next(1) :
|
||||
\ CheckBackspace() ? "\<Tab>" :
|
||||
|
@ -45,6 +46,9 @@ inoremap <expr><S-TAB> coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>"
|
|||
|
||||
inoremap <silent><expr> <c-@> coc#refresh()
|
||||
|
||||
nmap <silent><nowait> [g <Plug>(coc-diagnostic-prev)
|
||||
nmap <silent><nowait> ]g <Plug>(coc-diagnostic-next)
|
||||
|
||||
|
||||
packadd! termdebug
|
||||
|
||||
|
@ -62,7 +66,6 @@ call plug#begin()
|
|||
Plug 'stevearc/vim-arduino'
|
||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||
Plug 'ludovicchabant/vim-gutentags'
|
||||
Plug 'tpope/vim-unimpaired'
|
||||
|
||||
call plug#end()
|
||||
|
||||
|
|
Loading…
Reference in a new issue