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
Thomas Vigouroux
36d2c7d746
fix(fold): fix #350
...
Also correctly handle things like :
if (foo) {
}
if (bar) {
}
2020-09-01 21:51:17 +02:00
Thomas Vigouroux
545e5c479a
fix(fold): revamp fold
...
fix(fold): typo
fix(fold): remove debug and add queries
fix(fold): fallback to local scopes for folds
2020-09-01 21:51:17 +02:00
evakuator
92c18c8efa
use xmap in detach
2020-09-01 20:50:31 +02:00
evakuator
c5d5e48e0f
use xmap instead of vmap in textobjects
2020-09-01 20:50:31 +02:00
Thomas Vigouroux
acba0fd666
docs: Add CODEOWNERS file
2020-09-01 20:41:47 +02:00
Thomas Vigouroux
5a230e6c07
feat: add query filetype
2020-09-01 15:09:31 +02:00
Stephan Seitz
bc36521967
feat(refactor.navigation): allow a fallback_function for goto_definition
...
`fallback_function` is called when nvim-treesitter can not resolve the
variable under the cursor.
2020-08-31 22:16:27 +02:00
Stephan Seitz
6352cdc943
Fix(modules): simplify configs.setup
...
This prevents a really weird bug were the following function call (after
loading the activated modules) could activate `highlight_current_scope`
```lua
require "nvim-treesitter.configs".setup(
{
highlight = {
enable = false, -- false will disable the whole extension
disable = {"html", "lua"} -- list of language that will be disabled
},
refactor = {
highlight_current_scope = {
enable = false,
inverse_highlighting = true,
disable = {"python", "markdown"}
},
highlight_definitions = {
enable = true,
disable = {"markdown"}
},
},
ensure_installed = "all",
disable = {"markdown"}, -- list of language that will be disabled
}
)
```
2020-08-31 21:34:57 +02:00
Stephan Seitz
23b4542218
fix(highlight_current_scope): Ensure that detach is a inverse of attach
2020-08-31 21:34:57 +02:00
Stephan Seitz
08f1a8561f
Avoid enabling disabled modules (even if they were disabled immediately)
...
This might be safer for the case that attach/detach are not inverse to
each other. Disabled modules shouldn't ever be activated.
2020-08-31 21:34:57 +02:00
Stephan Seitz
5948aba886
feat(refactor.navigation): add navigation.goto_{next,previous}_usage
2020-08-31 18:56:41 +02:00
Stephan Seitz
ffe7d96dfd
feat(CI): auto-update README.md
2020-08-31 18:53:24 +02:00
Oleg Matrokhin
ac13baadb6
remove second check
2020-08-30 23:48:11 +02:00
Oleg Matrokhin
cf9df71341
fix get_package_path function for paths with trailing slash
2020-08-30 23:48:11 +02:00
Stephan Seitz
1cdf8bf750
C highlights: make preproc_defined @function.macro
2020-08-30 10:53:41 +02:00
Stephan Seitz
c5d07a01f6
docs(README): add link to Windows wiki page
2020-08-27 22:20:30 +02:00
Stephan Seitz
ce7efd34c6
Add Windows support (mingw)
2020-08-27 22:20:30 +02:00
Thomas Vigouroux
34160bb6f2
fix(health): only check installed parsers
...
This is to avoid awfully long checkhealths. And not installed parsers
can be infered from the fact that they are not listed.
2020-08-27 21:39:11 +02:00
Thomas Vigouroux
dee3c242d9
docs: document foldmethod workarounds
2020-08-27 15:06:12 +02:00
Stephan Seitz
5f37847dd8
C highlights: add bitwise-xor operator
2020-08-27 07:30:02 +02:00
Steven Sojka
e8fa0d0b31
Merge pull request #348 from theHamsta/readme-comma
...
docs: fix syntax error in README example
2020-08-26 07:20:58 -05:00
Steven Sojka
a8ec43da64
fix(locals): add js namespace import as definition
2020-08-26 14:14:20 +02:00
Stephan Seitz
2bd13c9d41
docs: fix syntax error in README example
2020-08-26 13:22:31 +02:00
Stephan Seitz
47b45ff883
feat(CI): print text what went wrong when README CI fails
2020-08-25 15:22:15 +02:00
Stephan Seitz
7c9ffe9e19
Fix #292 : Add parser links to README.md
2020-08-25 14:58:28 +02:00
Steven Sojka
5d97cc5e09
fix(locals): add nil guard for definition id creation
2020-08-25 14:35:08 +02:00
Pau Ruiz Safont
3fe5a067b3
feat(highlights): add ocaml
2020-08-24 10:16:38 +02:00
Stephan Seitz
32fdbe519e
feat(c/cpp highlights): highlight pointer/reference parameters
2020-08-24 09:54:26 +02:00
Stephan Seitz
627a1e558f
C++ highlights: Add initial support for attributes
2020-08-22 19:32:59 +02:00
Steven Sojka
3b2cb65d4c
Merge pull request #330 from steelsojka/fix-do-not-reattach
...
fix(modules): do not reattach if already attached
2020-08-22 09:10:28 -05:00
Steven Sojka
3fe8bbcf9c
fix(modules): do not reattach if already attached
2020-08-22 06:07:21 -05:00
Steven Sojka
53fda90be0
fix(smart_rename): fix usages call
2020-08-21 23:23:46 +02:00
Steven Sojka
f3a515b350
Merge pull request #331 from theHamsta/sudo-style-check
...
Run style check as sudo
2020-08-21 12:22:32 -05:00
Stephan Seitz
81182975ee
fix(CI): Run style check as sudo
2020-08-21 18:52:18 +02:00
Stephan Seitz
5c0ca925af
Python highlights: add additional operators
...
This is applies the upstream PR to our repo:
https://github.com/tree-sitter/tree-sitter-python/pull/73
2020-08-20 11:51:30 +02:00
Avi Dessauer
d2538ab7a7
Change self back to variable.builtin
2020-08-20 09:03:58 +02:00
Avi Dessauer
aacca0abf1
Deduplicate queries/rust/highlights.scm
...
Co-authored-by: TravonteD <tman1300@aol.com>
2020-08-20 09:03:58 +02:00
Avi Dessauer
df37483e3a
Highlight operators + improve consistency with Vim syntax
2020-08-20 09:03:58 +02:00
evakuator
6f1908a2ec
Docs: remove enable=true from textobjects module
2020-08-20 09:00:46 +02:00
evakuator
7e704852dc
Docs: fix textobjects
2020-08-20 09:00:46 +02:00
Santos Gallegos
7f81df4409
Docs: documentation for modules/submodules
2020-08-18 19:15:47 +02:00
Steven Sojka
393900b387
Merge pull request #324 from stsewd/python-fix
...
Python: fix some highlights
2020-08-18 10:38:06 -05:00
Santos Gallegos
fe8d91b748
Python: fix some highlights
...
These aren't valid lua patterns
2020-08-18 10:31:42 -05:00
Steven Sojka
761faf23b7
Merge pull request #323 from nathunsmitty/master
...
Rename @function.method to @method
2020-08-18 06:53:27 -05:00