Commit graph

785 commits

Author SHA1 Message Date
Lewis Russell
27d8fdc6a6 fix: do not force syntax=ON on detach
syntax is now restored in vim.treesitter.stop() so we don't need to
force it on here.
2023-01-04 14:08:28 +00:00
Stephan Seitz
817531ce6f parsers: add wgsl_bevy
This adds an extension of tree-sitter-wgsl that understands
[Bevy's](https://bevyengine.org/) preprocessor directives.
2022-12-31 15:19:48 +01:00
Stephan Seitz
29304e16bb fix: show errors when reload after installation fails 2022-12-31 13:59:18 +01:00
Stephan Seitz
0598450eb8 feat: also reload parsers after uninstallation 2022-12-31 13:59:18 +01:00
Michael Hoffmann
ee3e9f4dc0 feat(hcl,terraform): split terraform from hcl, add specialized queries for tf
This enables us to have different queries for
terraform and general hcl. It solve the situation
where other dialects of hcl (nomad, packer, etc)
might use a terraform keyword and get highlighted
out of place.
2022-12-29 22:18:41 +01:00
Stephan Seitz
7c9ddb72d1 feat: allow hot-reloading parser after installation 2022-12-26 15:36:16 +01:00
Stephan Seitz
f0a1c3df24 fix: require_language is needed after installation to update Vim's language table
Fixes #4026
2022-12-26 15:36:16 +01:00
Stephan Seitz
cf60564891 fix: do vim.treesitter.start() on highlight module attach
Fixes #4026
2022-12-26 13:42:11 +01:00
Philip Gaudreau
4bcd3a3cc3 Fix update_selection 2022-12-25 14:58:57 +01:00
Stephan Seitz
f2b1d727e6 chore: update usage vim.split to new signature
Old usage was still working because of backward compatibility of nvim
code:
```lua
if type(kwargs) == 'boolean' then
  -- Support old signature for backward compatibility
  plain = kwargs
else
```
`:h vim-split()`
https://neovim.io/doc/user/lua.html#vim.split()
2022-12-25 14:57:32 +01:00
Emmanuel Briot
23906e8838 feat: add Ada 2022-12-22 14:46:53 +01:00
xasc
2d48cbc831 feat(t32): initial support 2022-12-21 23:57:06 +01:00
dundargoc
87dd482e1a fix(health): align the list of parsers when doing checkhealth
Some parser names are too long for the given space, which shifts the
features so they aren't in line.
2022-12-21 13:08:15 +01:00
Stephan Seitz
507527711f feat: allow to set keymappings to false
Fixes #3954
2022-12-15 14:55:15 +01:00
Attila Tajti
6ed8a41bd5 utils: respect shellslash setting
Use '/' as path separator on Windows when shellslash is set.
2022-12-14 17:27:16 +01:00
Attila Tajti
07ff07ae4c install: fix is_installed checks with shellslash
Convert paths to use backslashes on Windows.
2022-12-14 17:27:16 +01:00
Attila Tajti
8b5080b1bf shell: respect shellslash option on Windows
Always use backlashes as path separators
in commands when they are used in cmd.exe.

Fixes #2844 #1965
2022-12-14 17:27:16 +01:00
Benedikt Reinartz
84261c67fc
feat(erlang)!: switch parser to maintained fork (#3791)
update queries to breaking changes
2022-12-08 19:40:41 +01:00
Julien Burkhard
b6beb5e7d0 feat: support when buf is not current 2022-12-04 18:35:55 +01:00
Christian Clason
857097b5b3 fix(sql)!: generate from grammar 2022-12-02 20:12:41 +01:00
Steven Arcangeli
8b241181ae fix: is_installed correctly detects installed parsers 2022-11-28 00:33:04 +01:00
Stephan Seitz
754335b649 fix(install): don't auto-install ignored parsers
Fixes #3631
2022-11-28 00:19:09 +01:00
Stephan Seitz
5aacb06135 chore: print OS version on health report
Often we get issue report without knowing which version of Windows or
Linux or MacOS they are running.
2022-11-26 18:38:49 +01:00
ObserverOfTime
67332894ef docs: fix wrong maintainers 2022-11-26 13:17:51 +02:00
Mamrezo Zare
1656f67f26 handle opts as number, #3323 2022-11-25 19:51:44 +01:00
RubixDev
41a59591a5 Add ebnf parser 2022-11-25 13:25:45 +01:00
Folke Lemaitre
37767540e5 fix(installer): don't update that are not installed (exclude global parsers) 2022-11-24 21:41:58 +01:00
gbprod
118a87f7e7 feat: add gitcommit parser 2022-11-24 12:26:02 +01:00
kylo252
acb65eedc5 fix(installer): ignore globally installed parsers
Problem:    `is_installed` is picking up parsers shipped by neovim v0.8
            with unknown version and compatability
Solution:   only consider a parser installed if it's available in the
            parsers_install_dir
2022-11-24 09:25:58 +01:00
ObserverOfTime
126a271363 feat: add mermaid 2022-11-20 12:24:55 +01:00
ObserverOfTime
8a261e32ec feat: add jq 2022-11-18 18:17:52 +01:00
ObserverOfTime
63b6f1f984 feat(arduino): separate from cpp 2022-11-18 16:51:08 +01:00
ObserverOfTime
a715e93312 feat: add awk 2022-11-16 10:45:19 +01:00
Carlos Alexandro Becker
eff0d43b49
feat: vhs (.tape) support (#3726) 2022-11-13 12:33:54 +01:00
Carlo Sala
80503a9910 fix(configs): ensure_installed can be a string 2022-10-31 12:51:25 +00:00
Lewis Russell
0948bf2274 feat(emmy): add emmylua annotations 2022-10-31 12:00:45 +01:00
gbprod
053f88f556 feat(git_rebase): add git_rebase parser 2022-10-28 10:36:23 +02:00
José Luis Lafuente
470b872d57
parsers: add nickel parser (#3506)
* parsers: add nickel parser

* Update lua/nvim-treesitter/parsers.lua

Co-authored-by: Christian Clason <christian.clason@uni-due.de>

* Update queries/nickel/highlights.scm

Co-authored-by: Christian Clason <christian.clason@uni-due.de>

* fix queries

* Cleanup (based on @theHamsta review)

Co-authored-by: Christian Clason <christian.clason@uni-due.de>
2022-10-19 23:33:31 +00:00
gbprod
1e4b23c266 feat(diff): add diff parser
This commit introduce diff parser.
2022-10-19 16:22:58 -07:00
Lewis Russell
b9bcbf8d73 fix(modules): allow non-registered langs to use modules
This change allows for languages not managed by nvim-treesitter to use
Nvim-treesitter modules like folding and indent.
2022-10-19 10:32:30 +02:00
Christian Clason
42ab95d5e1 feat!: remove obsolete TS* highlight groups 2022-10-16 15:50:55 +02:00
Michael Härtl
e53950f646 feat(phpdoc): Remove requires_generate_from_grammar 2022-10-16 10:01:03 +02:00
ObserverOfTime
0bfeb5484e test(gitattributes): add tests for highlights 2022-10-15 08:44:41 -07:00
Stephan Seitz
1da61c993a fix: explain what's wrong when installing a non-existing parser
Fixes #3450
2022-10-15 04:05:20 -07:00
Dusk Banks
c6a5a41283 fix(uninstall): support ensure_installed = 'all' 2022-10-10 23:09:40 +02:00
Thomas Vigouroux
b273a06728 fix: don't overwrite highlights when defining 2022-10-08 11:28:04 +02:00
gbprod
179a06bc8b style: fix code styling according to Stylua 2022-10-03 10:06:41 +02:00
gbprod
d8a695a1ac Introduce twig parser
This commit introduce parser, highlights and injections for the
[twig syntax](https://twig.symfony.com)
2022-10-03 10:06:41 +02:00
Christian Clason
8e763332b7 fix(test): update tests to Nvim 0.8 2022-10-02 09:29:34 -04:00
Christian Clason
5f6f866c86 update vimdoc parser and queries 2022-09-29 08:41:42 +02:00