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 smartindent
|
||||||
set tags=./tags,tags;$HOME
|
set tags=./tags,tags;$HOME
|
||||||
|
|
||||||
|
let g:gutentags_project_root = ['Makefile']
|
||||||
|
|
||||||
function! CheckBackspace() abort
|
function! CheckBackspace() abort
|
||||||
let col = col('.') - 1
|
let col = col('.') - 1
|
||||||
return !col || getline('.')[col - 1] =~# '\s'
|
return !col || getline('.')[col - 1] =~# '\s'
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
inoremap <silent><expr> <TAB>
|
inoremap <silent><expr> <TAB>
|
||||||
\ coc#pum#visible() ? coc#pum#next(1) :
|
\ coc#pum#visible() ? coc#pum#next(1) :
|
||||||
\ CheckBackspace() ? "\<Tab>" :
|
\ 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()
|
inoremap <silent><expr> <c-@> coc#refresh()
|
||||||
|
|
||||||
|
nmap <silent><nowait> [g <Plug>(coc-diagnostic-prev)
|
||||||
|
nmap <silent><nowait> ]g <Plug>(coc-diagnostic-next)
|
||||||
|
|
||||||
|
|
||||||
packadd! termdebug
|
packadd! termdebug
|
||||||
|
|
||||||
|
@ -62,7 +66,6 @@ call plug#begin()
|
||||||
Plug 'stevearc/vim-arduino'
|
Plug 'stevearc/vim-arduino'
|
||||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||||
Plug 'ludovicchabant/vim-gutentags'
|
Plug 'ludovicchabant/vim-gutentags'
|
||||||
Plug 'tpope/vim-unimpaired'
|
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue