Added semantic highlighting to coc

This commit is contained in:
ObeseTermite 2025-06-04 20:43:53 -07:00
parent 8500c5965e
commit 5597a11e50
2 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,4 @@
{
"suggest.noselect": true
"suggest.noselect": true,
"semanticTokens.enable": true
}

7
vimrc
View file

@ -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()