Commit graph

40 commits

Author SHA1 Message Date
Steven Sojka
d73500eaa6 refactor(refactor): use higher local apis and some cleanup 2020-06-30 08:21:01 +02:00
kiyan42
ddb41c36e8 update docs for TSInstall 2020-06-27 12:43:19 +02:00
TravonteD
51a52b85cf add highlight queries for bash 2020-06-23 16:15:19 +02:00
Stephan Seitz
895216014b Add disclaimer to README.md 2020-06-21 21:10:13 +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
Kiyan Yazdani
470b88279c
Merge pull request #86 from steelsojka/feat/json
feat(lang): add json highlights
2020-06-15 23:14:45 +02:00
Steven Sojka
7bc746f3f0 feat(lang): add json highlights 2020-06-15 15:24:05 -05:00
Thomas Vigouroux
79556b4155
Merge pull request #85 from PitcherTear22/master
Add java support
2020-06-15 20:26:09 +02:00
Chinmay Dalal
6a7ad3f011
Add java to supported languages 2020-06-15 23:12:20 +05:30
Steven Sojka
4551b0e1c9 Merge branch 'master' into feat/typescript-queries
* master:
  Change regexes in C/C++ highlights
  Update C/C++ highlights to new query syntax
  Add better highlighting for preprocessor functions in C highlights
  Add operators /=,*=,|=,&= to C highlights
  Add compound_statement to c queries
  Add punctuation.bracket/punctuation.delimiter to C highlights
  Make =,~,! operators in C highlights
  Add cpp/locals.scm
  Add @error highlight to c/highlights.scm
  Add C++ highlights.scm
  Introduce base languages for queries
  Add tree-sitter-regex
  feat(queries): allow for user overrides
  Update issue templates
2020-06-15 07:05:20 -05:00
Stephan Seitz
167ce6339f Add C++ highlights.scm 2020-06-15 11:51:28 +02:00
Kiyan Yazdani
6b26674ba0
Merge pull request #80 from steelsojka/feat/user-query-overrides
feat(queries): allow user query overrides
2020-06-15 11:43:42 +02:00
Steven Sojka
ac8ae3b1c7 feat(queries): add typescript and javascript queries 2020-06-14 13:41:23 -05:00
Stephan Seitz
45ea0df21a Add tree-sitter-regex
This might be interesting for injected highlighting
2020-06-14 13:09:38 +02:00
Steven Sojka
44108fe03e feat(queries): allow for user overrides 2020-06-14 05:58:09 -05:00
Thomas Vigouroux
85645f5720
Merge pull request #69 from theHamsta/go-highlights
Go highlights
2020-06-07 13:58:38 +02:00
Stephan Seitz
04040c61c7 Add highlights.scm for Go 2020-06-07 12:39:58 +02:00
Thomas Vigouroux
c934ea694c
Merge pull request #68 from TravonteD/html
Add html highlight queries
2020-06-02 21:15:48 +02:00
Thomas Vigouroux
8763a3163f
Merge pull request #67 from TravonteD/css
Add css highlight queries
2020-06-02 21:13:43 +02:00
TravonteD
d32d5abb4a Add html highlight queries 2020-06-02 15:13:36 -04:00
TravonteD
58f5bdbe01 Add css highlight queries 2020-06-02 15:11:35 -04:00
Santos Gallegos
53284f311a Fix example mappings 2020-06-01 19:15:28 -05:00
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