patrick96
e3dabec462
Add condition function to module config
...
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-12 19:55:04 +01:00
Santos Gallegos
6888242b98
Python: highlight semicolon
2021-11-12 19:51:04 +01:00
Łukasz Niemier
6372b689eb
fix: use more specific identifier check
2021-11-12 13:42:36 -05:00
Łukasz Niemier
fdcd0edf24
fix: make comment doc highlighting work for any doc tag
2021-11-12 13:42:36 -05:00
Łukasz Niemier
2c2d4d89fd
fix: Elixir non-doc sigils will no longer be flickering
...
It also adds support for colouring documentation metadata attributes
(ex. `@doc foo: :bar`).
2021-11-12 13:42:36 -05:00
GitHub
cfce9a58f3
Update lockfile.json
2021-11-12 19:23:42 +01:00
aspeddro
5706b1346b
r: add new operator
2021-11-12 12:48:26 -05:00
GitHub
abe03e2a8e
Update lockfile.json
2021-11-11 22:02:51 -05:00
Robert Jackson
da5920f2bf
Ensure ft_to_lang supports multipart filetypes.
...
This allows a given parser to directly implement a multipart filetype
(like `glimmer` parser does for `html.handlebars`).
If an exact match for the current filetype is found in the lookup table,
it will be used; otherwise we look for just the first segment.
2021-11-11 21:11:15 -05:00
Robert Jackson
89b3b77033
Add html.handlebars as a valid type for the glimmer parser.
...
This filetype is in common use due to https://github.com/mustache/vim-mustache-handlebars/blob/master/ftdetect/handlebars.vim#L2
2021-11-11 21:11:15 -05:00
Cameron
e28b65bb52
Add Operators for Ruby
...
Many operators were missing from ruby, so, I added them.
Additionally, with string interpolation (`"#{xxx}"`), the closing `}` was being matched to `punctuation.bracket` instead of `punctuation.special`, so I fixed that too.
I didn't see any further details about how to contribute, so if I've overlooked anything, I'll be happy to add it.
2021-11-11 21:04:42 -05:00
Cyril Mizzi
94fa0d3189
fix(vue.indents): add support for template_element
2021-11-11 21:00:33 -05:00
Cyril Mizzi
8d6c2b0044
fix: define indents.scm for html_tags and inherits html and vue from this file
2021-11-11 21:00:33 -05:00
Cyril Mizzi
ce866ecc2f
feat(vue): add indents.scm file
...
There's no indentation file for Vue. This implementation is based on the HTML indentation file with a minor support for the `template_element` tag. As JS is bind with the JS Tree-sitter, the indentation is already fine.
2021-11-11 21:00:33 -05:00
GitHub
0e25e0e989
Update lockfile.json
2021-11-08 15:19:33 +01:00
Sirisak Lueangsaksri
289439512e
docs: make comment more specific
2021-11-08 15:04:38 +01:00
Sirisak Lueangsaksri
f6dcbe66b0
refactor: nitpicking
2021-11-08 15:04:38 +01:00
Sirisak Lueangsaksri
aaf157a6a9
feat: sync install for ensure_installed
2021-11-08 15:04:38 +01:00
Dundar Göc
83efae51bf
docs: move description to the first line
...
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.
2021-11-05 18:32:19 -05:00
GitHub
d8ed0eff3e
Update lockfile.json
2021-11-04 20:55:10 +01:00
Lewis Russell
ece0f70139
fix(teal): highlighting for types
2021-11-04 20:42:36 +01:00
GitHub
7ada23db8b
Update lockfile.json
2021-11-03 00:08:46 +01:00
Dundar Göc
6a4fdb317d
chore: fix typos
2021-11-02 23:47:48 +01:00
Robert Jackson
968621dfad
Add ftdetect setup for glimmer parser. ( #1973 )
...
Without this, `*.hbs` files are not highlighted (unless you have some
other plugin that adds it for you).
2021-11-02 14:03:32 -05:00
elianiva
0916cceab2
feat(svelte): inject JS on each expression ( #1969 )
2021-11-02 10:59:23 -05:00
Santos Gallegos
6d08b25f0e
Update queries/python/highlights.scm
2021-11-01 16:54:46 +01:00
Santos Gallegos
df06643aa1
Revert "feat: add del keyword for highlights"
...
This reverts commit 385193d41f .
2021-11-01 16:54:46 +01:00
GitHub
1ca3213f27
Update lockfile.json
2021-11-01 15:31:55 +01:00
Stephan Seitz
05380d700b
Fix typo in locals.lua: vaild -> valid
2021-11-01 14:52:21 +01:00
Stephan Seitz
82afae9c9c
Fix bugs in TSRange
...
- TSRange:new() was missing to extract the line from nvim_buf_get_lines
- TSRange:parent() was only working when current buf == self.buf
2021-11-01 14:51:53 +01:00
GitHub
e96dae2404
Update lockfile.json
2021-11-01 14:27:57 +01:00
Ashish Panigrahi
385193d41f
feat: add del keyword for highlights
2021-11-01 13:19:27 +01:00
Santos Gallegos
0dd147e6b7
D: fix duplicate @namespace capture
...
The previous query was highlighting everything inside that node,
but we only want to highlight the identifiers.
Ref https://github.com/nvim-treesitter/nvim-treesitter/pull/1930/files#r735105675
2021-10-31 10:22:43 +01:00
Santos Gallegos
bd13991050
Rust: highlight uppercase identifiers in match arms as constant ( #1940 )
...
* Rust: highlight uppercase identifiers in match arms as constant
Closes https://github.com/nvim-treesitter/nvim-treesitter/issues/1928
* Highlight builtins
2021-10-30 12:09:54 -05:00
Yuri Pieters
d53b04189e
Add fennel ftdetect file ( #1952 )
2021-10-30 12:08:10 -05:00
Santos Gallegos
fe4e4aa286
yaml: improve highlights and locals ( #946 )
...
- More scopes
- Highlight strings as strings
- Recognize more keys/fields
Improvements can be seen with this weird yaml:
```yaml
{ foo: bar }
---
{a: [b, c], [d, e]: f}
---
- { single line, a: b}
- { multi
line, a: b}
---
"fooo": bar
'foo': bar
one: two
```
2021-10-26 22:47:59 -05:00
GitHub
0bbc6e3d16
Update lockfile.json
2021-10-23 00:02:49 +02:00
Santos Gallegos
55860a76d9
Use wrapper around vim.notify with common options
...
Ref https://github.com/nvim-treesitter/nvim-treesitter/pull/1927#issuecomment-947064843
2021-10-22 23:46:16 +02:00
Clay
97819053c8
Elixir: fix a few highlights, add ExUnit support to locals ( #1933 )
...
* Fix "not in" and sigil highlights
* Add ExUnit test case to locals
* Update README to mention new Elixir parser
2021-10-22 16:33:01 -05:00
Stephan Seitz
57d3126ac1
Update parsers with C# fixes ( #1910 )
...
* highlights(c_sharp): fix queries for parser update
* Update c_sharp parser
* Fix generic method
2021-10-22 16:31:41 -05:00
Santos Gallegos
10419ee747
Python: highlight interpolation escaped chars
...
Support for these was just added in the grammar.
2021-10-22 09:21:42 +02:00
GitHub
0545b3de55
Update lockfile.json
2021-10-21 23:54:07 +02:00
maxxnino
e3e43c479e
Add zig as compiler for parser
2021-10-21 22:10:55 +02:00
maxxnino
47a9e6dda9
Highlight zig add missing AssignOp
2021-10-21 20:23:01 +02:00
Github Actions
1501b7ae8a
[docgen] Update README.md
...
skip-checks: true
2021-10-21 19:50:23 +02:00
Stephan Seitz
7135321cc2
ci: use nvim v0.5.1 on CI
2021-10-21 19:50:23 +02:00
Stephan Seitz
24edc5d93f
ci: upload artifacts before check
...
This could provide better possibilities to investigate a failed CI.
2021-10-21 19:50:23 +02:00
Cezary Drożak
6cefdf3bab
fix(d): don't use string_literals
...
string_literals is not used in single argument template instances. The
nodes are from [1].
[1]: c2fbf21bd3/grammar.js (L536)
2021-10-20 09:16:20 +02:00
Github Actions
272666ab95
[docgen] Update README.md
...
skip-checks: true
2021-10-20 09:16:07 +02:00
Stephan Seitz
b6dcb81939
highlights(cpp): highlight literal_suffix as @operator
2021-10-20 09:16:07 +02:00