From 5597a11e50bb207d9a3d34a420ab37df62f7768a Mon Sep 17 00:00:00 2001 From: ObeseTermite Date: Wed, 4 Jun 2025 20:43:53 -0700 Subject: [PATCH] Added semantic highlighting to coc --- coc-settings.json | 3 ++- vimrc | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/coc-settings.json b/coc-settings.json index 2e18ade..b36563e 100644 --- a/coc-settings.json +++ b/coc-settings.json @@ -1,3 +1,4 @@ { - "suggest.noselect": true + "suggest.noselect": true, + "semanticTokens.enable": true } diff --git a/vimrc b/vimrc index f42f7d3..a11dc6a 100644 --- a/vimrc +++ b/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 \ coc#pum#visible() ? coc#pum#next(1) : \ CheckBackspace() ? "\" : @@ -45,6 +46,9 @@ inoremap coc#pum#visible() ? coc#pum#prev(1) : "\" inoremap coc#refresh() +nmap [g (coc-diagnostic-prev) +nmap ]g (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()