Santos Gallegos
54df21c39a
Python: update folds
2020-09-04 23:16:54 -05:00
Santos Gallegos
9bb3b05481
Fold: don't fold the first line from the node
...
Currently the fold will hide the function name,
this makes it hard to have context over the fold.
Leaving the first line visible makes it easy to read.
2020-09-04 23:15:37 -05: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
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