- Notifications
You must be signed in to change notification settings - Fork1
Tag highlight in neovim written in lua
License
NotificationsYou must be signed in to change notification settings
c0r73x/neotags.lua
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
successor ofhttps://github.com/c0r73x/neotags.nvim
neotags.setup({enable=true,-- enable neotags.luactags= {run=true,-- run ctagsdirectory=vim.env.HOME..'/.vim_tags'-- default directory where to store tagsverbose=false-- verbose ctags outputbinary='ctags',-- ctags binaryargs= {-- ctags arguments'--fields=+l','--c-kinds=+p','--c++-kinds=+p','--sort=no','-a' }, },ft_conv= {-- ctags filetypes to vim filetype ['c++']='cpp', ['moonscript']='moon', ['c#']='cs' },ft_map= {-- combine tags from multiple languages (for example header files in c/cpp)cpp= {'cpp','c'},c= {'c','cpp'} },hl= {minlen=3,-- dont include tags shorter than thispatternlength=2048,-- max syntax length when splitting it into chunksprefix=[[\C\<]],-- default syntax prefixsuffix=[[\>]]-- default syntax suffix },tools= {find=nil,-- tool to find files (defaults to running ctags with -R)-- find = { -- example using fd-- binary = 'fd',-- args = { '-t', 'f', '-H', '--full-path' },-- }, },ignore= {-- filetypes to ignore'cfg','conf','help','mail','markdown','nerdtree','nofile','readdir','qf','text','plaintext' },notin= {-- where not to include highlights'.*String.*','.*Comment.*','cIncluded','cCppOut2','cCppInElse2','cCppOutIf2','pythonDocTest','pythonDocTest2' }})
neotags.language('filetype', require'path/to/filetype')
example using C language
return {order='guesmfdtv',-- string with ctags kindskinds= {g= {group='neotags_EnumTypeTag',-- highlightprefix=[[\%(enum\s\+\)\@5<=]]-- override default prefixminlen=2,-- dont include tags shorter than this },...t= {group='neotags_TypeTag',suffix=[[\>\%(\.\|->\)\@!]]-- override default suffix },v= {group='neotags_GlobalVarTag' } }}
neotags.toggle()
About
Tag highlight in neovim written in lua
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published