Thomas Vigouroux
afd5d11519
feat(incremental_selection): don't require locals
2021-04-22 18:12:03 +02:00
Stephan Seitz
3f5c3c01e6
Avoid Lua 5.3 function table.unpack
2021-04-19 23:43:53 +02:00
Santos Gallegos
2abad14069
Fix TSEditQuery with several files ( #1191 )
...
- Choice already starts with 1, there isn't need to increment 1
- The first item is the prompt as recommended in `:h inputlist()`
(this way the choice matches when using the mouse)
2021-04-16 00:51:40 -05:00
Stephan Seitz
4df2667303
feat: Add TSEditQueryUserAfter
2021-04-14 16:23:21 +02:00
Stephan Seitz
4214646953
feat: Add TSEditQuery
2021-04-14 16:23:21 +02:00
Steven Sojka
7984975a2f
feat(install): allow ignore list when installing parsers ( #1098 )
2021-03-24 09:12:03 -05:00
Stephan Seitz
ff9bf6dc2b
feat: Allow to configure to use syntax and tree-sitter together
2021-03-18 12:03:37 +01:00
kiyan
9d57216c0d
chore: remove useless code and indent files
2021-02-27 13:36:33 +01:00
echasnovski
fdfbb5c1bf
Implement TSToggleAll.
2021-02-01 19:37:39 +01:00
echasnovski
8e2807d09e
Implement TSBufToggle.
2021-02-01 19:37:39 +01:00
Thomas Vigouroux
4538a876b4
Revert "added attach async"
2021-01-14 13:26:43 +01:00
Brian Shu
28f2ba475f
fixed not highlighting bug
2021-01-08 16:16:33 +01:00
Brian Shu
e0b49a9a18
added attach async
2021-01-07 11:16:16 +01:00
Stephan Seitz
402795997c
feat: add TSConfigInfo to display current config
...
https://nvim-treesitter.zulipchat.com/#narrow/stream/252271-general/topic/Random/near/210929394
2020-10-24 10:40:12 +02:00
Thomas Vigouroux
801416a8bc
fix(markdown): disable highlighting
...
The markdown scanner errors out far too often to be usable, disabling it
by default would avoid many issues until those assertion errors are
fixed.
2020-10-22 10:42:03 +02:00
kiyan42
1735528db5
Treesitter indent
...
also fixes the memoize_by_buf_tick function
2020-10-19 21:08:15 +02:00
kiyan42
36b5f6f075
start indent module
2020-10-19 21:08:15 +02:00
Stephan Seitz
3362f45196
Remove textobjects module
2020-10-04 14:20:20 +02:00
Steven Sojka
7f325538cc
Merge pull request #487 from steelsojka/remove-refactor
...
chore(modules): remove refactor module
2020-10-04 07:01:53 -05:00
Stephan Seitz
0a51d492a5
Add lockfile and make lockfile default install revision
2020-09-27 13:09:12 +02:00
Steven Sojka
82a8b859c6
chore(modules): remove refactor module
2020-09-25 10:30:35 -05:00
Santos Gallegos
20b822314d
Allow to call setup on already loaded modules.
2020-09-11 08:45:50 +02:00
Santos Gallegos
facdb691d9
Improve startuptime
...
- Don't load everything at startup
- Don't define an autocomand for each module and for each supported lang
(this creates nxm autocomand!)
2020-09-10 22:58:59 +02:00
Santos Gallegos
7508b93287
Import treesitter.install only when needed
2020-09-08 19:37:32 +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
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
Santos Gallegos
1ba18329c7
Refactor: move completion functions to autoload
2020-09-04 21:20:30 +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
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
Steven Sojka
3fe8bbcf9c
fix(modules): do not reattach if already attached
2020-08-22 06:07:21 -05:00
Stephan Seitz
5216811459
chore(textobjects): split up into submodules
2020-08-17 17:46:40 +02:00
Stephan Seitz
e629efafd8
Textobjects: provide mappings for all swap/goto functions
2020-08-17 17:44:40 +02:00
Stephan Seitz
5cfa03f2bd
Textobjects: add swap feature
2020-08-17 17:44:40 +02:00
Laxman Sooriyathas
0478fe8a48
pass full module path in recurse accumulator to enable/disable sub modules
2020-08-11 14:12:56 +02:00
Thomas Vigouroux
0a1353e8aa
configs: actually enable and disable on setup
2020-08-10 19:01:22 +02:00
Thomas Vigouroux
572a4a964b
configs: attach on unknown parsers too
2020-07-27 15:18:48 +02:00
Stephan Seitz
a4e2692c7b
Refactor: Add parsers.get_buf_lang
2020-07-16 09:34:31 +02:00
Steven Sojka
ec2f4df1d8
fix(configs): deep merge table configs
2020-07-15 15:54:10 +02:00
Thomas Vigouroux
e405802863
fix(configs): simplify module setup process
...
Abuse a bit of tbl_extend and tbl_deep_extend.
We might want to continue this effort, and simplify this part of the
plugin.
Fixes #178
2020-07-15 09:00:14 +02:00
Stephan Seitz
69cabc69be
Add textobjects module
2020-07-14 22:34:43 +02:00
Stephan Seitz
ee80e1ebc5
Add module refactor.highlight_current_scope
2020-07-13 22:26:17 +02:00
Stephan Seitz
97ad374816
Fix #167 : Add custom_captures config key to set highlights for custom queries
2020-07-13 22:04:24 +02:00
Steven Sojka
884080f89a
feat(configs): dynamic module defintions
2020-07-07 13:53:23 +02:00
Stephan Seitz
5642507f6a
Make luacheck happy
2020-07-05 19:21:06 +02:00
kiyan42
ce119de2e3
update installer with sync and some fixes
...
- add sync method for installing using `system`
- remove `descriptions` in command configs
- use install(lang) in ensure_installed and make it compatible
2020-06-30 08:32:49 +02:00
Steven Sojka
d73500eaa6
refactor(refactor): use higher local apis and some cleanup
2020-06-30 08:21:01 +02:00
Steven Sojka
6f8e4c97a4
feat(refactor): add definition navigation module
2020-06-30 08:21:01 +02:00
Steven Sojka
64838e51c0
feat(refactor): add smart rename module
2020-06-30 08:21:01 +02:00