-
-
Notifications
You must be signed in to change notification settings - Fork 9
No highlight of C tags #47
Comments
Have you added c in the C language in ctags? because if you specify kinds that the language dont have in the order then it wont highlight.
|
Example of problematic code: ATTR_ZIDATA_IN_NONCACHED_RAM_4BYTE_ALIGN static uint8_t g_bt_cmd_tx_vfifo[VFIFO_SIZE_TX_BT]; I don't see highlight of defines in array definition. My config of neotags I described above. If that limitation of ctags we can close issue, because navigation works fine and I'll just continue search way to get good syntax highlight. |
I've noticed a very annoying problem lately that I can't quite explain. It seems some highlight definitions, particularly anything done in one's .vimrc file or similar, are being cleared or overridden by the default settings. That is not supposed to happen. I'm not sure if this is necessarily related to your problem though. Remember that there must be highlighting definitions in place in addition to telling ctags what to look for. Example:
The problem I mentioned initially is that these definitions aren't working anymore. I spent an inordinate amount of time trying to trace just when and why this is happening before giving up. There's a workaround though. Define some function with your definitions and an autocmd to force them to be defined.
This is my setup for my new plugin (ahem: available here "https://github.com/roflcopter4/tag-highlight.nvim"), and some of the targets are custom. Apologies, but I don't use neotags anymore. It's similar enough to get the point across though. |
Work only default highlight for C language.
User-defined types and macroses aren't highlighted.
My config:
let g:neotags_enabled = 1
let g:neotags_highlight = 1
let g:neotags#c#order = 'cgstuedfpm'
let g:neotags#cpp#order = 'cgstuedfpm'
Other plugins:
NerdTree
ctrlp
tagbar
The text was updated successfully, but these errors were encountered: