linrongbin16 / gentags.nvim

Tags generator/management for old school vimers in Neovim.
MIT License
15 stars 1 forks source link

Feature Request: Whitelisted filetypes #31

Closed mizlan closed 6 months ago

mizlan commented 8 months ago

Hi, can there be an option that is the converse of disabled_filetypes? Basically only run the plugin on the listed filetypes, since this is probably more common for modern Neovim users. (e.g., they use language server for most languages, but some languages like Coq only have ctags integration).

linrongbin16 commented 8 months ago

Hi @mizlan, sorry for missing your message.

The proposal looks reasonable.


hi @mizlan , sorry for late response.

I checked again for your requirement, and I found that universal-ctags has --languages option, which all you only generate tags for specific languages.

See: https://stackoverflow.com/a/47849209/4438921

with the latest main branch, you can configure this plugin with:

require("gentags").setup({
  ctags = {
    "--languages=php"
  },
})
mizlan commented 7 months ago

Thanks, good catch! I will check if this satisfies my needs.