Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Tag highlight in neovim written in lua

License

NotificationsYou must be signed in to change notification settings

c0r73x/neotags.lua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

successor ofhttps://github.com/c0r73x/neotags.nvim

ScreenShot

Default Configuration

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'    }})

Add new language

neotags.language('filetype', require'path/to/filetype')

Filetype config

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'    }  }}

Toggle neotags

neotags.toggle()

About

Tag highlight in neovim written in lua

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp