aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-treesitter.lua
Commit message (Collapse)AuthorAgeFilesLines
* fix: config is enabled also checks parser existencekiyan422020-04-251-2/+1
|
* feat/refacto: improve configurationskiyan422020-04-241-16/+14
| | | | | | | | | | | - You should now get the configs through functions - Configs for languages are now inside a local object called parsers - You can get the parser installation configurations with `get_parser_configs` - A new object has been initialized inside configs to specify module config (called config). - Provide functions to enable/disable a module on one buffer - Provide functions to enable/disable a module on all buffers, and if filetype is specified, for specific filetype - Provide function to determine if module is activated for a specified filetype
* feat: syntax highlightingThomas Vigouroux2020-04-221-0/+3
|
* feat/refacto: add configs.lua, setup installkiyan422020-04-211-4/+11
| | | | | | | | - configs.lua holds the `repositories` data - install health moved to health.lua - plugins loads _root.setup() on startup - install and list command are available through vim > use them with `:TSInstall lang` and `:TSInstallInfo`
* feat: add parser listkiyan422020-04-201-0/+1
|
* perf: don't compute locals on buffer updatesThomas Vigouroux2020-04-191-6/+0
| | | | | | | Instead we lazily evaluate them on request. This allow two things : * better performances * being sure the locas are up to date
* feat: add locals to setup procedureThomas Vigouroux2020-04-191-0/+7
|
* add parser installerkiyan422020-04-191-0/+5
|
* feat: add parsers module and better match iterThomas Vigouroux2020-04-191-0/+3
| | | | | | | | | | | | | | | The `parsers` module manages parsers for us, for now only in a really basic way. iter_prepared_mathes iters on an enhanced versions of the matches, where captures are directly accessible via their names to allow things like : ((itentifier) @def.first (identifier) @def.last) To be handled like this in lua: match.def.first match.def.last Also adds a `set!` predicate to allow setting data within the prepared match (see queries/lua/locals.scm) for examples.
* feat: add empty setup functionThomas Vigouroux2020-04-181-0/+10
Will be used later to setup everything so that a language works properly in each situation.