Commit graph

738 commits

Author SHA1 Message Date
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
ObserverOfTime
9e897d7c74 chore(pug): mark as experimental 2022-09-20 09:01:40 +02:00
Null Chilly
1a85a335c2 fix(highlight): respect g:skip_ts_default_groups on ColorScheme autocmd 2022-09-19 17:12:40 +02:00
Lewis Russell
2eaf188269 fix(fold): don't include whitespace end regions
Some languages that are difficult to parse via Treesitter may
incorrectly include whitespace lines at the end of regions. This can
makes the calculated folds sub-optimal.

To recitfy, use a custom directive (trim), to calculate the range with
the trailing whitespace lines removed. Note this only works if the
region end column is 0.

Also added folds for Make.
2022-09-12 11:49:51 +01:00
Gabriele Musco
3c2d63c118 parsers: add blueprint parser 2022-09-12 10:54:58 +01:00
Cezary Drożak
f2d3d509d9 feat: add jsonnet 2022-09-10 11:09:10 -07:00
Akin Sowemimo
557123a616 fix(highlight): ensure link captures function exists
before attempting to call it
fixes #3465
2022-09-09 16:29:14 +02:00
ObserverOfTime
721251dbfc feat: add tree-sitter-gitattributes 2022-09-09 09:46:54 +02:00
zegervdv
ea0e91b63a feat(verilog): update version 2022-09-08 10:05:23 +02:00
Martin Pépin
82036f8db8 Add support for menhir (OCaml parser generator) 2022-09-05 14:48:58 -07:00
Raafat Turki
7845f31839 style: stylua 2022-09-01 05:10:23 -07:00
Raafat Turki
906507d9bd fix: grammar url 2022-09-01 05:10:23 -07:00
Raafat Turki
ddcda04301 feat: add tree-sitter-sxhkdrc 2022-09-01 05:10:23 -07:00
Akin Sowemimo
a601a12bae chore(highlight): re-add earlier call 2022-08-31 12:03:08 -07:00
Akin Sowemimo
65d0818fed fix(highlight): ensure links are rebuilt on colorscheme change 2022-08-31 12:03:08 -07:00
Stephan Seitz
d011532d73 fix: warn when user uninstalls parser than is in their ensure_installed
Fixes #2777
2022-08-26 13:35:17 -07:00
Stephan Seitz
11a8812a47 fix: add hint when there parser is still installed after TSUninstall 2022-08-26 13:35:17 -07:00
Stephan Seitz
14bd391e56 chore: remove unused parameter
The argument wasn't used anywhere neither in function nor in call sites
2022-08-26 13:35:17 -07:00
Stephan Seitz
7ab2c037dd chore!: don't allow to silently use alternative install directory 2022-08-26 13:35:17 -07:00
ShootingStarDragons
d4ca2c6791 feat(meson): add support for meson
Log: meson build
2022-08-26 11:55:16 -07:00
Christian Clason
7bd8b87df1 fixup: facepalm 2022-08-26 16:01:09 +02:00
Christian Clason
1baf751fb0 fix(hl_map): adapt to upstream changes on master
https://github.com/neovim/neovim/pull/19931 adds direct support for
highlighting capture groups (with fallback), obviating the need for
`vim.treesitter.highlighter.hl_map`. Instead of

`hl_map["@keyword"] = "TSKeyword"`

users can simply

`hi link TSKeyword @keyword`

Check for the existence of `hl_map` and either use the former or the
latter.
2022-08-26 06:04:07 -07:00
Stephan Seitz
29cf3fe42a parsers: add HLSL 2022-08-19 15:05:33 -07:00
Stephan Seitz
b245c44ce1 parsers: add tree-sitter-gitignore 2022-08-16 23:16:44 -07:00
ShootingStarDragons
c5eed2f2cd fix wrong parse
change maintainers
2022-08-16 11:38:50 -07:00
ShootingStarDragons
25baab9f59 add regenerate the treesitter 2022-08-16 11:38:50 -07:00
ShootingStarDragons
970fe39f4c feat(agda): add support for agda 2022-08-16 11:38:50 -07:00
NTBBloodbath
e9ab034139 chore: update tree-sitter-http parser URL 2022-08-09 09:06:19 +02:00
ray-x
a9a6493b1e nil check for lines 2022-08-06 05:38:42 -07:00
lfenzo
a51ef77674 Added function/method call highlight groups 2022-08-03 12:05:30 -07:00
Stephan Seitz
fbf453a432 chore: trim space in check-health
Fixes #3248
2022-08-03 18:45:37 +02:00
Stephan Seitz
4e371452e0 chore: show in TSInstallInfo when parser is still loaded 2022-08-03 09:03:54 +02:00
6cdh
d642de92f7 Add racket support 2022-08-03 00:25:14 +02:00
itepechi / いてぺち
abb8b5756a
fix: node_incremental for incremental selection jumping around (#3257) 2022-08-02 12:40:25 +00:00
Stephan Seitz
2282461416 docs: add descriptions to incremental_selection keymaps 2022-07-31 17:33:41 +02:00
John Drouhard
635c450939 feat(highlight): re-apply default highlights on colorscheme changes
If the plugin is loaded after a colorscheme is set that defines any of
these highlight groups, the default won't be applied. Subsequent
"highlight clear" commands (common when switching colorschemes) will
then clear any of those highlights, but these defaults never have
another opportunity to be initialized.

Effectively, if you load neovim with a colorscheme that has definitions
for some of these highlight groups, then load treesitter, then switch
colorschemes, many of these default links will be absent resulting in
colors that do not appear the same as if that colorscheme had been
used at startup.

Hooking the ColorScheme event with an autocmd that just reapplies these
defaults gives every colorscheme switch the opportunity to get the
defaults for non-explicitly-defined groups.
2022-07-30 20:13:24 +02:00
Axel Dahlberg
0d7fab0c33
feat(ts_utils): allow starting selection after last character (#3233) 2022-07-29 17:35:29 +02:00
Kiyan
d7f06bfb13
fix(indents): indents for error block (css, lua) (#3207) 2022-07-21 13:48:03 +02:00
kiyan
8b748a7570 chore: cleanup main file, move statusline in module 2022-07-18 15:44:59 +02:00
Kiyan
91ee9e7376
fix(typo): utils.create_or_resue_writable_dir -> reuse (#3194) 2022-07-18 12:43:31 +02:00
Kiyan
7e0651cd56
fix(indent): set only one autocmd for binding indentexpr (#3190) 2022-07-17 08:23:51 +02:00
Princeton Ferro
f3c309db4e feat(vala)!: switch to @vala-lang parser 2022-07-09 16:22:51 +02:00
smjonas
013c744b06 fix: avoid installing parsers multiple times when using auto_install 2022-07-08 22:02:36 +02:00
Jonas Strittmatter
365f0eb75f
feat: add option to auto-install missing parsers (#3130) 2022-07-08 07:36:54 +00:00
derekstride
8927588e47 Initial SQL support 2022-07-08 00:15:40 +02:00
Access
4b5966c81a
add qmljs (#3126) 2022-07-07 16:33:47 +02:00
Christian Clason
225b474560 chore: reformat with Stylua 0.14.0 2022-07-07 09:18:05 +02:00
Stephan Seitz
f69b1ebd7a docs: add description to markdown/markdown_inline in README 2022-06-28 23:20:47 +02:00