Skip to content
This repository has been archived by the owner on Dec 20, 2021. It is now read-only.

C syntax highlighting not working as before #34

Open
Elhodred opened this issue Aug 23, 2018 · 4 comments
Open

C syntax highlighting not working as before #34

Elhodred opened this issue Aug 23, 2018 · 4 comments

Comments

@Elhodred
Copy link

After some time I updated all my plugins in neovim and I found that some of the highlights are not working like cType and others

screen shot 2018-08-23 at 17 04 20

I'm using rakr/vim-one as my colour scheme I don't see any strange change there.
Anyone can point to me what to look for? I'm getting a bit crazy here

@c0r73x
Copy link
Owner

c0r73x commented Aug 23, 2018

Yeah something is strange, i tested some things now and if I try to add for example "local" variables to the g:neotags#c#order it dosen't pick it up. The tag file from neotags still don't output local variables. And if i try to force if with running a tag file in the source folder i get a strange error "Neotags: No lang/kind".

I will investigate some more, or maybe @roflcopter4 have an answer for this strangeness?

@roflcopter4
Copy link
Collaborator

I have to admit that I haven't even looked at the code in a few months, I've been writing what is basically a version of this plugin entirely in C (why? because I'm a masochist). Obvious plug here, but if neotags is semi-broken at the moment it might be worth looking at. Right now it is faster and does more than neotags (like actually parsing headers for relevant tags, reading .json files, running things in parallel, and directly talking to neovim without an api in between). Anyway, if you're interested (and don't mind the occasional segfault) it's here. ENDPLUG

Otherwise I suppose I really ought to take a look at this problem. I can't really imagine why default highlighting groups would be getting clobbered.

As to the customizing problems, I'll take a look too. The way the code worked required ctags to be run with particular arguments and was picky about the order. Adding to the g:neotags#c#order variable won't make the plugin actually run ctags with the arguments to output those tags, and if you run ctags manually you have to be certain that you got the arguments correct (which is why the code couldn't find the language or kind field in your case).

@roflcopter4
Copy link
Collaborator

I think I have at least partially solved this problem (by throwing away 75% of the code and rewriting it...). Since the rewrite doesn't implement everything yet (C code is 100% broken, some features are ignored, gzip only, etc) I am keeping it in the dev branch, but everything seems to work as it should. If anyone wants to test it that would be helpful.

@darosior
Copy link

darosior commented Jul 22, 2019

FWIW, and if you land here googling the "Neotags: No lang/kind" : the dev branch solved it for me. If you are using Plug :

Plug 'c0r73x/neotags.nvim', { 'branch': 'dev', 'do': ':UpdateRemotePlugins' }

Thank you @roflcopter4 !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants