Commit graph

515 commits

Author SHA1 Message Date
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
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