Stephan Seitz
8bc5d1ff3f
Add C++ folds and C comment/preproc folds
2020-09-08 22:02:39 +02:00
Stephan Seitz
3c1399b94e
Fix #418 : iterator function should always return an iterator
...
Even if it's an empty iterator.
2020-09-08 22:02:11 +02:00
Stephan Seitz
dc077b5fb0
feat(parsers): add filetype PKGBUILD
2020-09-08 20:34:58 +02:00
Santos Gallegos
7508b93287
Import treesitter.install only when needed
2020-09-08 19:37:32 +02:00
Santos Gallegos
77c2730a62
Improve startup performance
2020-09-08 19:37:32 +02:00
kyazdani42
3a3a1bb252
use keyword.function instead of function
2020-09-08 19:23:04 +02:00
kyazdani42
b10a09ebc3
fix function/end keywords not applied for every scope
2020-09-08 19:23:04 +02:00
Santos Gallegos
95a7d24180
Queries: merge query_extensions into base_language_map
...
These two are doing the same currently.
2020-09-08 19:16:54 +02:00
Santos Gallegos
7b972d581c
Fold: update docs
...
Document foldnestmax.
2020-09-08 15:07:23 +02:00
kyazdani42
8d6c40ce24
fix using highlight query extension for every query type
2020-09-07 21:57:56 +02:00
Santos Gallegos
9c456edb3a
Incremental selection: fix skipping some nodes
...
The range from ts nodes are a little different than
neovim's nodes. They start at 0 and the end is exclusive.
For example, a nvim range (1, 3, 2, 4) is the equivalent to the ts
range (0, 2, 1, 4).
Since we may hit parent nodes that have the same range as its child,
we skip those till we find one that actually changes the selection
(since this is the relevant part for the user).
Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/232
2020-09-07 18:24:55 +02:00
Santos Gallegos
a5360d02e4
Fold: respect max_fold_level from 'foldnestmax'
2020-09-07 18:24:21 +02:00
Stephan Seitz
f37d94699f
go locals: remove unused strip! directive
2020-09-07 01:47:53 +02:00
Santos Gallegos
c719e60266
rst: remove unused captures
...
This is causing an error.
2020-09-06 21:57:32 +02:00
Pau Ruiz Safont
4db39e27c9
fix: ocaml highlight
...
The string.special group was removed from highlight.lua, replace its
uses by the string group.
2020-09-06 20:52:56 +02:00
kyazdani42
b69b43b712
fix: contional > conditional in lua hl.scm
2020-09-06 18:32:14 +02:00
kyazdani42
15b182b2a9
fix bash highlight
2020-09-06 17:59:16 +02:00
Santos Gallegos
0928b918a0
Lua: update highlights
2020-09-06 17:25:03 +02:00
Santos Gallegos
5504b84d21
Lua: fix loop and conditional keywords highlights
2020-09-06 17:24:34 +02:00
Steven Sojka
02735aae55
feat(folds): add ts and js folds
2020-09-06 17:20:43 +02:00
kiyan42
feead20c04
change @meta to @type for derive directives because @meta is not defined
2020-09-06 17:00:41 +02:00
Steven Sojka
881eff1c60
fix(highlights): fix ts parameter highlights
2020-09-06 16:59:03 +02:00
Santos Gallegos
1a42056e09
Highlights: default TSError to Normal
...
This provides a better experience for users
without any extra config.
2020-09-06 16:12:02 +02:00
Santos Gallegos
97c1e60bd4
Text objects: check for query files first
...
The first function is faster and more common.
2020-09-06 15:51:10 +02:00
Rasmus Michelsen
50de57711b
Fixed table insertion
2020-09-06 13:42:24 +02:00
Rasmus Michelsen
07c0e837ab
Fixed win32 check hopefully
2020-09-06 13:42:24 +02:00
Rasmus Michelsen
d9a7b80c7b
Added changes
2020-09-06 13:42:24 +02:00
Rasmus Michelsen
f0f162d041
A few fixes
2020-09-06 13:42:24 +02:00
Rasmus Michelsen
38d34ad493
Local variable fix
2020-09-06 13:42:24 +02:00
Rasmus Michelsen
4f1a464027
Support TSInstall on Winddows with Clang
2020-09-06 13:42:24 +02:00
Santos Gallegos
930591b689
Highlights: use underlined for TSURI
...
Neovim already uses this hl group `:h group-name`
and it's recommend for links.
2020-09-06 12:34:32 +02:00
Santos Gallegos
7a1f6b1586
Completion: use custom instead of customlist
...
Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/396
2020-09-05 19:29:46 +02:00
kiyan42
9e22864d03
fix ts_available_modules should be using nvim_treesitter#available_modules
2020-09-05 17:05:08 +02:00
Pieter Goetschalckx
9ef264a733
Fix filename
2020-09-05 10:02:42 +02:00
Santos Gallegos
fa5aa080dc
Query: update highlights
...
More color!
2020-09-04 21:21:48 +02:00
Santos Gallegos
1ba18329c7
Refactor: move completion functions to autoload
2020-09-04 21:20:30 +02:00
Steven Sojka
b8453e63b2
Merge pull request #385 from stsewd/query-locals
...
Query: add program as scope
2020-09-04 14:13:54 -05:00
Santos Gallegos
f85dd99b5d
Query: add program as scope
2020-09-04 13:49:04 -05:00
Santos Gallegos
fcdb3eb35d
Python: update folds
...
Missed one
2020-09-03 19:03:05 +02:00
Thomas Vigouroux
355d86fe6b
preds: declare set! predicate
2020-09-03 18:19:18 +02:00
Santos Gallegos
bdf43b15df
Python: add folds
2020-09-03 18:14:28 +02:00
Stephan Seitz
38df2d252f
Add warning about required Neovim version
2020-09-03 15:33:18 +02:00
Constantine Theocharis
36f3e036e5
Change 'install' -> 'index'
2020-09-02 23:29:27 +02:00
Constantine Theocharis
a52c639d80
Modify description slightly and place modeline at the end
2020-09-02 23:29:27 +02:00
Constantine Theocharis
10ef8f98ef
Add section 'Performance' to docs
2020-09-02 23:29:27 +02:00
Steven Sojka
fd356a2670
fix(locals): js add arrow function parameter as definition
2020-09-02 17:26:17 +02:00
TravonteD
439b58d92c
add scanner file for fennel parser
2020-09-02 06:59:42 +02:00
Thomas Vigouroux
419388d887
health: add fold queries to check health
2020-09-01 21:51:17 +02:00
Thomas Vigouroux
03621e758c
docs(fold): document and comment
2020-09-01 21:51:17 +02:00
Thomas Vigouroux
d5e11c41cf
fold(c): ignore compound statements
2020-09-01 21:51:17 +02:00