Code Monkey home page Code Monkey logo

Comments (5)

c0r73x avatar c0r73x commented on June 19, 2024

I use the latest version of Universal Ctags which tells me:
Warning: --extra option is obsolete; use --extras instead

Thats why I use extras instead of extra as default. But you can define it in your vimrc.

Which version of ctags are you using, it might be that it generates diffrent kinds of tagfiles that I havn't tested.

from neotags.nvim.

m31k0r avatar m31k0r commented on June 19, 2024

So Archlinux still uses Exuberant Ctags 5.8 as default. So the problem with extras/extra gets resolved by using Universal Ctags.

But I still don't see any Highlighting.
init.vim:

"Install Plugins
call plug#begin('~/.config/nvim/plugged')
Plug 'c0r73x/neotags.nvim', { 'do': ':UpdateRemotePlugins' }
call plug#end()

"Config for Neotag
let g:neotags_enabled = 1
let g:neotags_highlight = 1

Example test.cpp:

#define FOO int
FOO test;
class Foo2 {};
Foo2 test2;

Generated tags:

FOO	/home/jholder/test/test.cpp	/^#define FOO /;"	d	language:C++	file:
test	/home/jholder/test/test.cpp	/^FOO test;$/;"	v	language:C++	typeref:typename:FOO
Foo2	/home/jholder/test/test.cpp	/^class Foo2 {};$/;"	c	language:C++	file:
test2	/home/jholder/test/test.cpp	/^Foo2 test2;$/;"	v	language:C++	typeref:typename:Foo2

Only class, #define, int gets highlighted.
Versions:

NVIM v 0.2.2
Universal Ctags 0.0.0(47726595), Copyright (C) 2015 Universal Ctags Team

Thanks for the help.

from neotags.nvim.

c0r73x avatar c0r73x commented on June 19, 2024

Humm ok I get the same problem when running with a clean vimrc.

I will fix it.

from neotags.nvim.

c0r73x avatar c0r73x commented on June 19, 2024

Now it should work as expected.

from neotags.nvim.

m31k0r avatar m31k0r commented on June 19, 2024

Yes now it works. Could you maybe add in the README that universal-ctags is needed and Exuberant Ctags is not enough.

from neotags.nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.