Comments (5)
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.
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.
Humm ok I get the same problem when running with a clean vimrc.
I will fix it.
from neotags.nvim.
Now it should work as expected.
from neotags.nvim.
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)
- Error when python venv in same directory HOT 8
- Very poor performance when neotags is enabled and the tags file is large HOT 2
- Error on startup HOT 4
- No highlight with python script HOT 1
- Does ctags have option named --extras? HOT 1
- No such file or directory when starting neovim HOT 3
- JavaScript - TypeError: sequence item 6: expected str instance, list found HOT 4
- tagfiles() return an empty array HOT 10
- `async=True` SyntaxError HOT 1
- C syntax highlighting not working as before HOT 4
- Traceback at startup HOT 1
- No module name 'neovim.api.nvim' HOT 1
- Install fails with dein HOT 4
- Invalid buffer id HOT 18
- always error msg: regexp missing final separator HOT 3
- "E117: Unknown Function: NeotagsInit" on installing with vim-plug HOT 2
- Allow adding extra directories to "projects" HOT 1
- Tags sometimes don't get highlighted until I force them to? HOT 4
- No highlight of C tags HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neotags.nvim.