summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter/configs.lua
AgeCommit message (Collapse)Author
2022-10-31fix(configs): ensure_installed can be a stringCarlo Sala
2022-10-31feat(emmy): add emmylua annotationsLewis Russell
2022-10-19fix(modules): allow non-registered langs to use modulesLewis Russell
This change allows for languages not managed by nvim-treesitter to use Nvim-treesitter modules like folding and indent.
2022-08-26fix: warn when user uninstalls parser than is in their ensure_installedStephan Seitz
Fixes #2777
2022-08-26chore: remove unused parameterStephan Seitz
The argument wasn't used anywhere neither in function nor in call sites
2022-08-26chore!: don't allow to silently use alternative install directoryStephan Seitz
2022-07-18fix(typo): utils.create_or_resue_writable_dir -> reuse (#3194)Kiyan
2022-07-08feat: add option to auto-install missing parsers (#3130)Jonas Strittmatter
2022-06-20Add support for custom parser install locations #2959 (#3031)Duncan McDougall
2022-04-30fixup: separate augroups for modulesChristian Clason
2022-04-30refactor!: update to Neovim 0.7 APIsChristian Clason
* set highlight groups via nvim_set_hl * define autocommands via nvim_create_autocmd * port plugin/nvim-treesitter.vim to Lua * port healthcheck to Lua
2022-04-18chore!: remove compat module for vim.uiStephan Seitz
2022-04-10fix(modules): enabling disabling per buffer and globallykiyan
When a module is disabled by default in the config, running TSBufEnable will not enable the module because the is_enabled function will always return false, thus the module not being enabled. Also, disabling/enabling the buffers is flaky. This commit adds per buffer check when the module is not disabled. It also makes the enable and disable more indempotent. i've also renamed TS*All to TS*. Fixes #2754
2022-02-19refacto: expose a function to set custom capture for the higlighterkiyan
BREAKING: deprecate custom_captures from highlight config. This allows plugin authors to extend the map. It also avoids settings user configuration specific values during the highlighter initialization (SOC). Not sure how much value this brings, and might potentially break a lot of people configurations. This is questionable.
2022-02-06chore: expose start and stop highlighterkiyan
Decompose highlighter module in small functions to allow exporting a start and stop functions without the syntax change. Also fix linter issues in configs.lua
2021-12-14parsers: Add MDeiml/tree-sitter-markdown as markdown parserStephan Seitz
Fixes #872
2021-11-28Fix docspatrick96
2021-11-28Make disable accept a functionpatrick96
Replaces the condition setting (though it does the exact inverse)
2021-11-28Rename cond to conditionpatrick96
2021-11-12Add condition function to module configpatrick96
The function is called with the language and bufnr, if it returns false, the module is disabled for that buffer. This gives the user more fine-grained control over whether a module is started.
2021-11-08refactor: nitpickingSirisak Lueangsaksri
2021-11-08feat: sync install for `ensure_installed`Sirisak Lueangsaksri
2021-10-22Use wrapper around vim.notify with common optionsSantos Gallegos
Ref https://github.com/nvim-treesitter/nvim-treesitter/pull/1927#issuecomment-947064843
2021-10-03chore: use vim.ui.select for TSEditQuery if availableStephan Seitz
2021-07-18Re-attach module when the file type is changedSantos Gallegos
Requires https://github.com/neovim/neovim/pull/14995 Closes https://github.com/nvim-treesitter/nvim-treesitter/issues/1249
2021-07-11New stylua version (#1555)Stephan Seitz
2021-07-04Use stylua for autoformat code (#1480)Santos Gallegos
2021-07-04Improved passing bang to functionsShane Hird
2021-07-04Fix ensure_installed functionShane Hird
2021-07-04TSUpdate does not install if up to dateShane Hird
2021-04-22feat(incremental_selection): don't require localsThomas Vigouroux
2021-04-19Avoid Lua 5.3 function table.unpackStephan Seitz
2021-04-16Fix TSEditQuery with several files (#1191)Santos Gallegos
- Choice already starts with 1, there isn't need to increment 1 - The first item is the prompt as recommended in `:h inputlist()` (this way the choice matches when using the mouse)
2021-04-14feat: Add TSEditQueryUserAfterStephan Seitz
2021-04-14feat: Add TSEditQueryStephan Seitz
2021-03-24feat(install): allow ignore list when installing parsers (#1098)Steven Sojka
2021-03-18feat: Allow to configure to use syntax and tree-sitter togetherStephan Seitz
2021-02-27chore: remove useless code and indent fileskiyan
2021-02-01Implement `TSToggleAll`.echasnovski
2021-02-01Implement `TSBufToggle`.echasnovski
2021-01-14Revert "added attach async"Thomas Vigouroux
2021-01-08fixed not highlighting bugBrian Shu
2021-01-07added attach asyncBrian Shu
2020-10-24feat: add TSConfigInfo to display current configStephan Seitz
https://nvim-treesitter.zulipchat.com/#narrow/stream/252271-general/topic/Random/near/210929394
2020-10-22fix(markdown): disable highlightingThomas Vigouroux
The markdown scanner errors out far too often to be usable, disabling it by default would avoid many issues until those assertion errors are fixed.
2020-10-19Treesitter indentkiyan42
also fixes the memoize_by_buf_tick function
2020-10-19start indent modulekiyan42
2020-10-04Remove textobjects moduleStephan Seitz
2020-10-04Merge pull request #487 from steelsojka/remove-refactorSteven Sojka
chore(modules): remove refactor module
2020-09-27Add lockfile and make lockfile default install revisionStephan Seitz