| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| |
|
|
|
|
|
| |
Problem: People complain about noisy `install()`.
Solution: Gate operation summary behind `summary` install option
(default false, set to true for interactive `:TS*` commands).
|
| | |
|
| | |
|
| |
|
|
| |
Provides significantly simpler blocking installation and update.
|
| |
|
|
| |
This was only useful for no longer supported `auto_install` option.
|
| |
|
|
|
|
|
|
|
|
|
| |
This updates
* README
* CONTRIBUTING
* the `:h nvim-treesitter` documentation
to the current state of `main`. It also adds a pull request template for
adding a new language.
|
| |
|
|
|
|
|
|
| |
Instead, call `require('nvim-treesitter').install( { ... } )` manually.
This gives users full control over how they want to install parsers
(sync, from grammar, limited concurrency) and obviates the need for
calling `setup` for most users.
|
| |
|
|
|
|
|
| |
* stable: updates follow semver releases (todo)
* unstable: updates follow HEAD (default)
* unmaintained: no automatic updates
* unsupported: no updates, cannot be installed
|
| |
|
|
| |
use https://github.com/lewis6991/ts-install.nvim instead
|
| |
|
|
|
|
|
|
|
|
|
| |
Problem: Tracking parser revision in lockfile and allowing override
through the parsers module complicates the code. In addition, only
revision changes are handled robustly, not changes to other installation
info.
Solution: Track parser revision in the parsers module directly. Reload
parser table on every install or update call. Support modifying parser
table in a `User TSUpdate` autocommand.
|
| |
|
|
| |
also fixes the hole in install.compilers
|
| |
|
|
| |
Replace sync variants with callback support
|
| | |
|
| |
|
|
|
|
|
|
| |
update CONTRIBUTING.md
adjust indents for bass
fix doc capture comment
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
indents now use @indent.X style captures, and indent.PROP for properties to set on those captures, as documented in the help.
Captures are:
indent.auto
indent.begin
indent.end
indent.dedent
indent.branch
indent.ignore
indent.align
indent.zero
Properties are:
indent.immediate
indent.start_at_same_line
indent.open_delimiter
indent.close_delimiter
indent.increment
indent.avoid_last_matching_next
Multiple opening delims on one line and multiple closing on a line are collapsed so as not to over indent,
The final line of @indent.align blocks which must in some cases be treated specially to avoid clashing with the next line is treated the same regardless of whether the @indent.align capture actually uses aligned indentation or just normal indentation. The indent.avoid_last_matching_next property controls this.
Adjust python to use these.
List, set, dict and tuple all use @indent.align which permits both hanging and aligned styles.
Finally, try: on it’s own will indent when typing live but make no guaranteeds about whole-file formatting.
Includes lucario387:fix-align-indent
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
to reflect additional node argument
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
BREAKING CHANGE: specify explicit list or use `ensure_installed='all'`
(not recommended)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
| |
Some builtin highlight groups (see `:h group-name`) do not yet have
associated capture groups, so add them.
|
| |
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
Ref https://github.com/nvim-treesitter/nvim-treesitter/issues/2095#issuecomment-992759818
|
| | |
|
| | |
|
| |
|
|
| |
Replaces the condition setting (though it does the exact inverse)
|
| | |
|
| |
|
|
| |
Ref: #1994
|
| |
|
|
|
|
|
|
|
|
|
| |
This will make the description of nvim-treesitter show up in the LOCAL
ADDITIONS section of the help text. So this
|nvim-treesitter|
instead becomes
|nvim-treesitter| Treesitter configurations and abstraction layer for Neovim.
|
| | |
|
| |
|
|
|
|
|
|
|
| |
- Fix misspellings, missing punctuation and capitalization.
- Clarify whether highlights apply to identifiers (e.g. `TSConstant`)
or to literal values (e.g. `TSConstBuiltin`).
- Extend examples.
See #1767
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
* Highlights: define string.special
This was in our CONTRIBUTING.md file,
but wasn't defined.
Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/1405
* Use string.escape
|
| | |
|
| | |
|