Commit graph

127 commits

Author SHA1 Message Date
Thomas Vigouroux
a9abe2b9b0 docs: document the new runtime query system 2020-08-14 16:42:53 +02:00
Santos Gallegos
429036317a Lua: highlight function name 2020-08-09 18:38:00 +02:00
Stephan Seitz
70939e71c9 Add TSUninstall 2020-08-02 22:58:08 +02:00
Stephan Seitz
a872762d82 Add TSUpdate command to update parsers 2020-08-02 22:58:08 +02:00
Santos Gallegos
5202b7b098 Docs: rework readme
- Fix some typos
- Remove some unnecessary text that was taking space
- Use double quotes in lua examples (this seems to be the convention in
  the source code)
- Sort list of languages so they are easy to find.
2020-07-29 17:00:23 +02:00
Santos Gallegos
6f9e5bf23f Docs: format and fixes
Format the docs to be consisted and some typos.
2020-07-27 16:49:07 +02:00
Santos Gallegos
6f01384cb2 Parsers: add reStructuredText 2020-07-27 09:16:26 +02:00
Stephan Seitz
d351c9b342 Update documentation for new modules 'refactor'/'textobjects' 2020-07-14 22:34:43 +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
Sainnhepark
af8192f087 remove doc/tags 2020-07-01 14:13:41 +02:00
Stephan Seitz
4757636995 Rgenerate doc/tags 2020-06-30 17:22:27 +02:00
Stephan Seitz
a2f0931254 Extend documentation for TSError 2020-06-29 13:50:23 +02:00
Stephan Seitz
c27d35adc5 Fix typo in documentation: labe: -> label: 2020-06-28 12:11:22 +02:00
kiyan42
ddb41c36e8 update docs for TSInstall 2020-06-27 12:43:19 +02:00
Thomas Vigouroux
282e18edd1 highlight: use custom highlight groups 2020-06-26 20:56:19 +02:00
kiyan42
cf72524b2f add winnr to get_node_at_cursor 2020-06-19 14:13:23 +02:00
kiyan42
cabe61ac19 update docs 2020-06-19 14:03:01 +02:00
Santos Gallegos
53284f311a Fix example mappings 2020-06-01 19:15:28 -05:00
Thomas Vigouroux
c035fb9f5d docs: document folding 2020-05-25 11:19:38 +02:00
K Lauer
70224ffc8f docs: missing EOF for init.vim 2020-05-19 10:07:56 -07:00
kiyan42
8be2dc64a2 Expose internal api.
- add `exposed_state` to expose 'current_node' and 'cursor_pos'
for a current buffer to the user.
- add `get_buf_state` and `get_node_api` for users.
- add documentation about api functions.
- remove `node_movement` module which should be done in user side.
2020-05-15 14:19:29 +02:00
kiyan42
45dcebb15f refacto/feat: better handling of parser updates
features:
- node_movement is moving between scopes.
- add selection initialization from normal mode
- add a decremental selection

improvements:
- attach to buffer to run tree parsing on change
- run state update on CursorMoved
- the buffer state is:
```
{
  cursor_pos = { row=row, col=col },
  current_node = node_under_cursor,
  selection = {
      range = nil, -- activates when starting a selection
      nodes = {} -- filling up when starting an incremental selection
  },
  parser = parser, -- parser for current buffer
}
```
- refacto all the modules reliant on parsing the tree, update the current nodes, get the current nodes...

fixes:
- fix has_parser to look for .so libraries
- fix should select the whole file when selection root in selection
2020-05-12 16:16:48 +02:00
Thomas Vigouroux
703ccbec59 docs: add statusline indicator informations.
Also document newly added parsers by adding them in the readme.
2020-05-07 13:04:53 +02:00
Stephan Seitz
a33bccaaf0 Add documentation for node_movement, rename: textobj -> incremental_selection 2020-05-03 11:10:36 +02:00
kiyan42
dc06f9ea81 update docs for ensure installed, move modules config in config.modules 2020-05-01 12:26:57 +02:00
kiyan42
475fc8988b add vim documentation 2020-04-28 12:43:34 +02:00
kiyan42
f83b76b488 add documentation 2020-04-28 12:22:11 +02:00