Tags generator/management for old school vimers in Neovim.
To be honest, tags have become useless in Neovim today, since we have LSP and treesitter now. While there exists gap when LSP server or treesitter implementations are insufficient, and brings it back to us as a supplement to fill the gap.
- Automatically run in background.
- Support both workspace/single-file mode.
- Full update on workspace open, incremental update on file save.
- Terminate immediately on nvim leave.
- Find the matching tags and load on workspace/file open.
- Disk cache management and garbage collection.
- Real-time status for Neovim components such as statusline.
- Neovim ≥ 0.7.
- universal-ctags (default backend).
PRs are welcome to add other backends.
With lazy.nvim
require("lazy").setup({
{
"linrongbin16/gentags.nvim",
config = function()
require('gentags').setup()
end,
},
})
With pckr.nvim
require("pckr").add({
{
"linrongbin16/gentags.nvim",
config = function()
require("gentags").setup()
end,
},
})
To overwrite default options, please use:
require('gentags').setup(opts)
The otps
is an optional lua table that overwrites default options.
For complete options and defaults, please see configs.lua.
Recommend use tags with below plugins to smooth your editing flow:
- vista.vim: View and search symbols on current file.
- cmp-nvim-tags: Code completion data source for nvim-cmp.
- fzf.vim: The
Tags
andBTags
commands in the fzf.vim fuzzy finder. - fzf-lua: The
tags
,btags
and other commands in the fzf-lua fuzzy finder. - telescope.nvim: The
builtin.tags
vim picker in the telescope fuzzy finder.
- gentags.lua: Auto generates tags by filetype.
- vim-gutentags: A Vim plugin that manages your tag files.
To develop the project and make PR, please setup with:
To run unit tests, please install below dependencies:
Then test with vusted ./test
.
Please open issue/PR for anything about gentags.nvim.
Like gentags.nvim? Consider