Commit graph

17 commits

Author SHA1 Message Date
Stephan Seitz
43b30d571a Fix typo in README.md: foldexr -> foldexpr 2020-05-26 19:32:33 +02:00
Thomas Vigouroux
c035fb9f5d docs: document folding 2020-05-25 11:19:38 +02:00
Stephan Seitz
a5c50262d9 Add python locals.scm 2020-05-16 19:32:02 +02:00
Thomas Vigouroux
89e593b910 docs: update README 2020-05-16 14:47:17 +02: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
Stephan Seitz
9c4099a898 Fix typo in README.md 2020-05-08 16:16:12 +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
0d75cb2d27 edit: add information to the readme
- commands descriptions
- list of supported languages
2020-04-28 12:35:33 +02:00
TravonteD
2bb1fdcbe2 Fix spelling inconsistencies 2020-04-23 12:51:00 -04:00
Kiyan Yazdani
107b3a6312
Update README.md
Co-Authored-By: Thomas Vigouroux <39092278+vigoux@users.noreply.github.com>
2020-04-22 19:47:09 +02:00
Kiyan Yazdani
7a8f16b899
Update README.md
Co-Authored-By: Thomas Vigouroux <39092278+vigoux@users.noreply.github.com>
2020-04-22 19:46:57 +02:00
kiyan42
e8d85ddca8 fix: readme typos 2020-04-22 19:36:10 +02:00
Thomas Vigouroux
ec60eadb7d docs(README): update and add quickstart 2020-04-22 19:21:02 +02:00
Thomas Vigouroux
3ca9471db6
Create README.md 2020-04-18 17:32:14 +02:00