diff options
Diffstat (limited to 'autoload/sleuth.vim')
-rw-r--r-- | autoload/sleuth.vim | 43 |
1 files changed, 22 insertions, 21 deletions
diff --git a/autoload/sleuth.vim b/autoload/sleuth.vim index 0bb73fd8..aa61d8fb 100644 --- a/autoload/sleuth.vim +++ b/autoload/sleuth.vim @@ -2,7 +2,7 @@ let s:globs = { \ '8th': '*.8th', \ 'Dockerfile': '*.dockerfile,*.dock,*.Dockerfile,Dockerfile,dockerfile,Dockerfile*', \ 'Jenkinsfile': '*.jenkinsfile,*.Jenkinsfile,Jenkinsfile,Jenkinsfile*', - \ 'a2ps': 'a2psrc', + \ 'a2ps': 'a2psrc,.a2psrc', \ 'a65': '*.a65', \ 'aap': '*.aap', \ 'abap': '*.abap', @@ -13,15 +13,15 @@ let s:globs = { \ 'ada': '*.adb,*.ads,*.ada,*.adc,*.gpr,*.ada_m', \ 'ahdl': '*.tdf', \ 'aidl': '*.aidl', - \ 'alsaconf': '', + \ 'alsaconf': '.asoundrc', \ 'aml': '*.aml', \ 'ampl': '*.run', \ 'ant': 'build.xml', - \ 'apache': 'access.conf*,apache.conf*,apache2.conf*,httpd.conf*,srm.conf*', + \ 'apache': '.htaccess,access.conf*,apache.conf*,apache2.conf*,httpd.conf*,srm.conf*', \ 'apiblueprint': '*.apib', \ 'applescript': '*.applescript,*.scpt', \ 'aptconf': 'apt.conf', - \ 'arch': '=tagging-method', + \ 'arch': '.arch-inventory,=tagging-method', \ 'arduino': '*.pde,*.ino', \ 'art': '*.art', \ 'asciidoc': '*.asciidoc,*.adoc,*.asc', @@ -58,7 +58,7 @@ let s:globs = { \ 'dd': '*.dd', \ 'ddoc': '*.ddoc', \ 'dhall': '*.dhall', - \ 'dosini': '*.wrap,*.ini,*.dof,*.lektorproject,*.prefs,*.pro,*.properties,buildozer.spec,php.ini-*', + \ 'dosini': '*.wrap,*.ini,*.dof,*.lektorproject,*.prefs,*.pro,*.properties,buildozer.spec,.editorconfig,.npmrc,php.ini-*', \ 'dsdl': '*.sdl', \ 'dune': 'jbuild,dune,dune-project,dune-workspace', \ 'ecrystal': '*.ecr', @@ -80,9 +80,10 @@ let s:globs = { \ 'fsharp': '*.fs,*.fsi,*.fsx', \ 'gdscript3': '*.gd', \ 'gitcommit': 'COMMIT_EDITMSG,MERGE_MSG,TAG_EDITMSG', - \ 'gitconfig': '*.gitconfig', + \ 'gitconfig': '*.gitconfig,.gitconfig,.gitmodules', + \ 'gitignore': '.gitignore', \ 'gitrebase': 'git-rebase-todo', - \ 'gitsendemail': '', + \ 'gitsendemail': '.gitsendemail.*', \ 'glsl': '*.glsl,*.fp,*.frag,*.frg,*.fs,*.fsh,*.fshader,*.geo,*.geom,*.glslf,*.glslv,*.gs,*.gshader,*.shader,*.tesc,*.tese,*.vert,*.vrx,*.vsh,*.vshader,*.comp', \ 'gmpl': '*.mod', \ 'gnuplot': '*.gp,*.gnu,*.gnuplot,*.p,*.plot,*.plt,*.gpi', @@ -105,15 +106,15 @@ let s:globs = { \ 'html.mustache': '*.mustache,*.hogan,*.hulk,*.hjs', \ 'html.twig': '*.twig', \ 'htmldjango': '*.jinja,*.j2,*.jinja2,*.njk', - \ 'i3config': '*.i3.config,*.i3config,i3.config,i3config', + \ 'i3config': '*.i3.config,*.i3config,i3.config,i3config,.i3.config,.i3config', \ 'icalendar': '*.ics', \ 'idris': '*.idr,*.lidr,idris-response', \ 'idris2': '*.idr,*.ipkg,idris-response', \ 'ion': '*.ion', \ 'javascript': '*.js,*._js,*.bones,*.cjs,*.es,*.es6,*.frag,*.gs,*.jake,*.jsb,*.jscad,*.jsfl,*.jsm,*.jss,*.mjs,*.njs,*.pac,*.sjs,*.ssjs,*.xsjs,*.xsjslib,Jakefile', \ 'javascriptreact': '*.jsx', - \ 'jq': '*.jq', - \ 'json': '*.json,*.avsc,*.geojson,*.gltf,*.har,*.ice,*.JSON-tmLanguage,*.jsonl,*.mcmeta,*.tfstate,*.tfstate.backup,*.topojson,*.webapp,*.webmanifest,*.yy,*.yyp,*.jsonp,*.template,composer.lock,mcmod.info,Pipfile.lock', + \ 'jq': '*.jq,.jqrc,.jqrc*', + \ 'json': '*.json,*.avsc,*.geojson,*.gltf,*.har,*.ice,*.JSON-tmLanguage,*.jsonl,*.mcmeta,*.tfstate,*.tfstate.backup,*.topojson,*.webapp,*.webmanifest,*.yy,*.yyp,*.jsonp,*.template,.arcconfig,.htmlhintrc,.tern-config,.tern-project,.watchmanconfig,composer.lock,mcmod.info,Pipfile.lock', \ 'json5': '*.json5', \ 'jsonnet': '*.jsonnet,*.libsonnet', \ 'jst': '*.ejs,*.ect,*.jst', @@ -127,7 +128,7 @@ let s:globs = { \ 'livescript': '*.ls,*._ls,Slakefile', \ 'llvm': '*.ll', \ 'log': '*.log,*.LOG,*_log,*_LOG', - \ 'lua': '*.lua,*.fcgi,*.nse,*.p8,*.pd_lua,*.rbxs,*.rockspec,*.wlua', + \ 'lua': '*.lua,*.fcgi,*.nse,*.p8,*.pd_lua,*.rbxs,*.rockspec,*.wlua,.luacheckrc', \ 'm4': '*.m4,*.at', \ 'mako': '*.mako,*.mao', \ 'markdown': '*.md,*.markdown,*.mdown,*.mdwn,*.mkd,*.mkdn,*.mkdown,*.ronn,*.workbook,contents.lr', @@ -142,7 +143,7 @@ let s:globs = { \ 'nix': '*.nix', \ 'oasis': '_oasis', \ 'objc': '*.m,*.h', - \ 'ocaml': '*.ml,*.eliom,*.eliomi,*.ml4,*.mli,*.mll,*.mly,*.mlt,*.mlp,*.mlip,*.mli.cppo,*.ml.cppo', + \ 'ocaml': '*.ml,*.eliom,*.eliomi,*.ml4,*.mli,*.mll,*.mly,*.mlt,*.mlp,*.mlip,*.mli.cppo,*.ml.cppo,.ocamlinit', \ 'ocamlbuild_tags': '_tags', \ 'ocpbuild': '*.ocp', \ 'ocpbuildroot': '*.root', @@ -152,7 +153,7 @@ let s:globs = { \ 'opam': '*.opam,*.opam.template,opam', \ 'opencl': '*.cl,*.opencl', \ 'perl': '*.pl,*.al,*.cgi,*.fcgi,*.perl,*.ph,*.plx,*.pm,*.psgi,*.t,Makefile.PL,Rexfile,ack,cpanfile', - \ 'php': '*.php,*.aw,*.ctp,*.fcgi,*.inc,*.php3,*.php4,*.php5,*.phps,*.phpt,Phakefile', + \ 'php': '*.php,*.aw,*.ctp,*.fcgi,*.inc,*.php3,*.php4,*.php5,*.phps,*.phpt,.php,.php_cs,.php_cs.dist,Phakefile', \ 'plantuml': '*.puml,*.iuml,*.plantuml,*.uml,*.pu', \ 'pod': '*.pod', \ 'pony': '*.pony', @@ -163,10 +164,10 @@ let s:globs = { \ 'pug': '*.jade,*.pug', \ 'puppet': '*.pp,Modulefile', \ 'purescript': '*.purs', - \ 'python': '*.py,*.cgi,*.fcgi,*.gyp,*.gypi,*.lmi,*.py3,*.pyde,*.pyi,*.pyp,*.pyt,*.pyw,*.rpy,*.smk,*.spec,*.tac,*.wsgi,*.xpy,DEPS,SConscript,SConstruct,Snakefile,wscript', + \ 'python': '*.py,*.cgi,*.fcgi,*.gyp,*.gypi,*.lmi,*.py3,*.pyde,*.pyi,*.pyp,*.pyt,*.pyw,*.rpy,*.smk,*.spec,*.tac,*.wsgi,*.xpy,.gclient,DEPS,SConscript,SConstruct,Snakefile,wscript', \ 'qmake': '*.pro,*.pri', \ 'qml': '*.qml,*.qbs', - \ 'r': '*.r,*.rsx,*.s,*.S,expr-dist', + \ 'r': '*.r,*.rsx,*.s,*.S,.Rprofile,expr-dist', \ 'racket': '*.rkt,*.rktd,*.rktl,*.scrbl', \ 'ragel': '*.rl', \ 'raku': '*.6pl,*.6pm,*.nqp,*.p6,*.p6l,*.p6m,*.pl,*.pl6,*.pm,*.pm6,*.t,*.rakudoc,*.rakutest,*.raku,*.rakumod,*.pod6,*.t6', @@ -176,13 +177,13 @@ let s:globs = { \ 'requirements': '*.pip,*requirements.{txt,in},*require.{txt,in},constraints.{txt,in}', \ 'rhelp': '*.rd', \ 'rst': '*.rst,*.rest,*.rest.txt,*.rst.txt', - \ 'ruby': '*.rb,*.builder,*.eye,*.fcgi,*.gemspec,*.god,*.jbuilder,*.mspec,*.pluginspec,*.podspec,*.rabl,*.rake,*.rbi,*.rbuild,*.rbw,*.rbx,*.ru,*.ruby,*.spec,*.thor,*.watchr,*.rxml,*.rjs,*.rant,*.axlsx,*.cap,*.opal,Appraisals,Berksfile,Buildfile,Capfile,Dangerfile,Deliverfile,Fastfile,Gemfile,Gemfile.lock,Guardfile,Jarfile,Mavenfile,Podfile,Puppetfile,Rakefile,Snapfile,Thorfile,Vagrantfile,buildfile,Rantfile,Cheffile,KitchenSink,Routefile,vagrantfile,[Rr]akefile*,*_spec.rb', + \ 'ruby': '*.rb,*.builder,*.eye,*.fcgi,*.gemspec,*.god,*.jbuilder,*.mspec,*.pluginspec,*.podspec,*.rabl,*.rake,*.rbi,*.rbuild,*.rbw,*.rbx,*.ru,*.ruby,*.spec,*.thor,*.watchr,*.rxml,*.rjs,*.rant,*.axlsx,*.cap,*.opal,.irbrc,.pryrc,.simplecov,Appraisals,Berksfile,Buildfile,Capfile,Dangerfile,Deliverfile,Fastfile,Gemfile,Gemfile.lock,Guardfile,Jarfile,Mavenfile,Podfile,Puppetfile,Rakefile,Snapfile,Thorfile,Vagrantfile,buildfile,Rantfile,.autotest,Cheffile,KitchenSink,Routefile,.Guardfile,.Brewfile,vagrantfile,[Rr]akefile*,*_spec.rb', \ 'rust': '*.rs,*.rs.in', \ 'sbt.scala': '*.sbt', \ 'scala': '*.scala,*.kojo,*.sc', \ 'scss': '*.scss', \ 'sexplib': '*.sexp', - \ 'sh': '*.sh,*.bash,*.bats,*.cgi,*.command,*.env,*.fcgi,*.ksh,*.sh.in,*.tmux,*.tool,9fs,PKGBUILD,bash_aliases,bash_logout,bash_profile,bashrc,cshrc,gradlew,login,man,profile', + \ 'sh': '*.sh,*.bash,*.bats,*.cgi,*.command,*.env,*.fcgi,*.ksh,*.sh.in,*.tmux,*.tool,.bash_aliases,.bash_history,.bash_logout,.bash_profile,.bashrc,.cshrc,.env,.env.example,.flaskenv,.login,.profile,9fs,PKGBUILD,bash_aliases,bash_logout,bash_profile,bashrc,cshrc,gradlew,login,man,profile', \ 'slim': '*.slim', \ 'slime': '*.slime', \ 'smt2': '*.smt2,*.smt', @@ -199,7 +200,7 @@ let s:globs = { \ 'terraform': '*.hcl,*.nomad,*.tf,*.tfvars,*.workflow', \ 'textile': '*.textile', \ 'thrift': '*.thrift', - \ 'tmux': '', + \ 'tmux': '.tmux.conf', \ 'toml': '*.toml,Cargo.lock,Gopkg.lock,poetry.lock,Pipfile', \ 'tptp': '*.p,*.tptp,*.ax', \ 'trasys': '*.inp', @@ -217,17 +218,17 @@ let s:globs = { \ 'vmasm': '*.mar', \ 'vue': '*.vue,*.wpy', \ 'xdc': '*.xdc', - \ 'xml': '*.xml,*.adml,*.admx,*.ant,*.axml,*.builds,*.ccproj,*.ccxml,*.clixml,*.cproject,*.cscfg,*.csdef,*.csl,*.csproj,*.ct,*.depproj,*.dita,*.ditamap,*.ditaval,*.dll.config,*.dotsettings,*.filters,*.fsproj,*.fxml,*.glade,*.gml,*.gmx,*.grxml,*.gst,*.iml,*.ivy,*.jelly,*.jsproj,*.kml,*.launch,*.mdpolicy,*.mjml,*.mm,*.mod,*.mxml,*.natvis,*.ncl,*.ndproj,*.nproj,*.nuspec,*.odd,*.osm,*.pkgproj,*.pluginspec,*.proj,*.props,*.ps1xml,*.psc1,*.pt,*.rdf,*.resx,*.rss,*.sch,*.scxml,*.sfproj,*.shproj,*.srdf,*.storyboard,*.sublime-snippet,*.targets,*.tml,*.ui,*.urdf,*.ux,*.vbproj,*.vcxproj,*.vsixmanifest,*.vssettings,*.vstemplate,*.vxml,*.wixproj,*.workflow,*.wsdl,*.wsf,*.wxi,*.wxl,*.wxs,*.x3d,*.xacro,*.xaml,*.xib,*.xlf,*.xliff,*.xmi,*.xml.dist,*.xproj,*.xsd,*.xspec,*.xul,*.zcml,*.cdxml,*.tpm,*.csproj.user,*.wpl,App.config,NuGet.config,Settings.StyleCop,Web.Debug.config,Web.Release.config,Web.config,packages.config', + \ 'xml': '*.xml,*.adml,*.admx,*.ant,*.axml,*.builds,*.ccproj,*.ccxml,*.clixml,*.cproject,*.cscfg,*.csdef,*.csl,*.csproj,*.ct,*.depproj,*.dita,*.ditamap,*.ditaval,*.dll.config,*.dotsettings,*.filters,*.fsproj,*.fxml,*.glade,*.gml,*.gmx,*.grxml,*.gst,*.iml,*.ivy,*.jelly,*.jsproj,*.kml,*.launch,*.mdpolicy,*.mjml,*.mm,*.mod,*.mxml,*.natvis,*.ncl,*.ndproj,*.nproj,*.nuspec,*.odd,*.osm,*.pkgproj,*.pluginspec,*.proj,*.props,*.ps1xml,*.psc1,*.pt,*.rdf,*.resx,*.rss,*.sch,*.scxml,*.sfproj,*.shproj,*.srdf,*.storyboard,*.sublime-snippet,*.targets,*.tml,*.ui,*.urdf,*.ux,*.vbproj,*.vcxproj,*.vsixmanifest,*.vssettings,*.vstemplate,*.vxml,*.wixproj,*.workflow,*.wsdl,*.wsf,*.wxi,*.wxl,*.wxs,*.x3d,*.xacro,*.xaml,*.xib,*.xlf,*.xliff,*.xmi,*.xml.dist,*.xproj,*.xsd,*.xspec,*.xul,*.zcml,*.cdxml,*.tpm,*.csproj.user,*.wpl,.classpath,.cproject,.project,App.config,NuGet.config,Settings.StyleCop,Web.Debug.config,Web.Release.config,Web.config,packages.config', \ 'xml.twig': '*.xml.twig', \ 'xs': '*.xs', \ 'xsl': '*.xslt,*.xsl', - \ 'yaml': '*.yml,*.mir,*.reek,*.rviz,*.sublime-syntax,*.syntax,*.yaml,*.yaml-tmlanguage,*.yaml.sed,*.yml.mysql,glide.lock,yarn.lock,fish_history,fish_read_history', + \ 'yaml': '*.yml,*.mir,*.reek,*.rviz,*.sublime-syntax,*.syntax,*.yaml,*.yaml-tmlanguage,*.yaml.sed,*.yml.mysql,.clang-format,.clang-tidy,.gemrc,glide.lock,yarn.lock,fish_history,fish_read_history', \ 'yaml.ansible': 'playbook.y{a,}ml,site.y{a,}ml,main.y{a,}ml,local.y{a,}ml,requirements.y{a,}ml,tasks.*.y{a,}ml,roles.*.y{a,}ml,handlers.*.y{a,}ml', \ 'yaml.docker-compose': 'docker-compose*.yaml,docker-compose*.yml', \ 'zephir': '*.zep', \ 'zig': '*.zig,*.zir', \ 'zir': '*.zir', - \ 'zsh': '*.zsh', + \ 'zsh': '*.zsh,.zshrc,.zshenv,.zlogin,.zprofile,.zlogout', \} func! sleuth#GlobForFiletype(type) |