neotags.lua icon indicating copy to clipboard operation
neotags.lua copied to clipboard

Not working out of the box

Open iggu opened this issue 3 years ago • 3 comments

In my neovim setup I added neotags.lua as a plugin, and also called 'setup' In my c++ codedir I check up that :set ctags? prints ~/.vim_tags as expected - which shows that the plugin is loaded Any attempt to use <C-]> fails with message "No tags file is found". Filesystem inspection confirms this. I tried to call 'neotags.toggle' and 'neotags.update' manually - but also with no further success. So the question is - how to make this plugin do it's job?

Btw, if I start w/o the plugin loaded - tags work out of the box, but no updates happen. xolox/easytags did the job.

iggu avatar Oct 31 '22 17:10 iggu

Could you set ctags.verbose = true in the setup, that should show the output from ctags incase there is something strange with versions 🤔

You shouldnt have to use a separate plugin for creating/loading tags if you dont want to, neotags should do this for you. But it should work with any tag plugin since it reads the tags that neovim has loaded.

c0r73x avatar Nov 01 '22 09:11 c0r73x

while ctags.verbose is set - nvim's stdout is busy with endless messages 'ctags: cannot open tag file : No such file or directory' it's being printed and printed and printed - forever if verbose is set to false - then neovim with neotags enabled eats processor in the background, i beleive, it silently does the same useless job here is the settings i call setup with: { enable = true, ctags = { run = true, directory = '~/.cache/nvim/ctags', verbose = false } } neovim version (manually compiled): NVIM v0.7.2 Build type: Release LuaJIT 2.1.0-beta3 Features: +acl +iconv +tui

iggu avatar Nov 02 '22 15:11 iggu

I see, you probably want to use directory = vim.fn.expand('~/.cache/nvim/ctags')

c0r73x avatar Nov 02 '22 17:11 c0r73x