Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JMarkin/gentags.lua
autogenerate tags for neovim
https://github.com/JMarkin/gentags.lua
ctags neovim-plugin
Last synced: 2 months ago
JSON representation
autogenerate tags for neovim
- Host: GitHub
- URL: https://github.com/JMarkin/gentags.lua
- Owner: JMarkin
- Created: 2022-07-09T20:02:53.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-18T18:56:00.000Z (7 months ago)
- Last Synced: 2024-01-24T10:41:45.776Z (5 months ago)
- Topics: ctags, neovim-plugin
- Language: Lua
- Homepage:
- Size: 8.79 KB
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Lists
- awesome-neovim - JMarkin/gentags.lua - Auto generate tag files by ctags. (Utility / Cursorline)
- awesome-stars - JMarkin/gentags.lua - autogenerate tags for neovim (Lua)
- awesome-neovim - JMarkin/gentags.lua - Auto generate tag files by ctags. (Utility / Cursorline)
- awesome-neovim - JMarkin/gentags.lua - Auto generate tag files by ctags. (Utility / Cursorline)
README
# Auto generate tag files by ctags
This plugin autogenerates tags by filetype. Inspired by [jsfaint/gen_tags.vim](https://github.com/jsfaint/gen_tags.vim)
## Install
```lua
{
"JMarkin/gentags.lua",
cond = vim.fn.executable("ctags") == 1,
dependencies = {
"nvim-lua/plenary.nvim",
},
config = function()
require("gentags").setup({})
end,
event = "VeryLazy",
}
```## Configuration
```lua
{
root_dir = vim.g.gentags_root_dir or vim.loop.cwd(),
cache = {
path = Path:new(vim.fn.stdpath("cache")):joinpath("tags"), -- path where generated tags store, currently required plenary Path object
},
async = true, -- run ctags asynchronous
bin = "ctags",
args = { -- extra args
"--extras=+r+q",
"--exclude=.git",
"--exclude=node_modules*",
"--exclude=.mypy*",
"--exclude=.pytest*",
"--exclude=.ruff*",
"--exclude=BUILD",
"--exclude=vendor*",
"--exclude=*.min.*",
},
-- mapping ctags --languages <-> neovim filetypes
lang_ft_map = {
["Python"] = { "python" },
["Lua"] = { "lua" },
["Vim"] = { "vim" },
["C,C++,CUDA"] = { "c", "cpp", "h", "cuda" },
["JavaScript"] = { "javascript" },
["Go"] = { "go" },
}
}
```