Santos Gallegos
be8f656087
Use stylua for autoformat code ( #1480 )
2021-07-04 21:12:17 +00:00
Steven Sojka
6863f79118
refactor(all): language tree adaption ( #1105 )
2021-03-30 08:18:24 -05:00
kiyan
9d57216c0d
chore: remove useless code and indent files
2021-02-27 13:36:33 +01:00
echasnovski
079dafa36e
Add "v", "V", "<C-v>" as valid options of selection_mode.
2021-02-21 20:25:26 +01:00
echasnovski
a34459213e
Add selection_mode argument to ts_utils.update_selection().
2021-02-21 20:25:26 +01:00
Brian Shu
6856e23171
removed async changedtick
2021-01-08 16:16:33 +01:00
Brian Shu
33d5a03322
async buf_attach
2021-01-08 16:16:33 +01:00
Brian Shu
03fea8494c
removed async changedtick
2021-01-07 11:16:16 +01:00
Brian Shu
ec5f1402e2
async buf_attach
2021-01-07 11:16:16 +01:00
Thomas Vigouroux
808765a6c8
fix: update interface following languagetree merge ( #687 )
2020-11-23 12:46:27 -06:00
kiyan42
1735528db5
Treesitter indent
...
also fixes the memoize_by_buf_tick function
2020-10-19 21:08:15 +02:00
Stephan Seitz
5948aba886
feat(refactor.navigation): add navigation.goto_{next,previous}_usage
2020-08-31 18:56:41 +02:00
Stephan Seitz
32271b26ef
Textobjects: set jump before going to adjacent_textobject
2020-08-17 17:45:46 +02:00
Stephan Seitz
5cfa03f2bd
Textobjects: add swap feature
2020-08-17 17:44:40 +02:00
Steven Sojka
282e33ad9c
fix(definitions): optimize and fix definition highlighting
2020-08-13 07:43:09 -05:00
Thomas Vigouroux
572a4a964b
configs: attach on unknown parsers too
2020-07-27 15:18:48 +02:00
Stephan Seitz
16af10999c
Fix #206 : Use lsp.util.apply_text_edits for smart_rename
2020-07-20 23:24:54 +02:00
Steve Vermeulen
3c0684f7f2
Fixed to use normal! instead of normal
2020-07-20 08:57:59 +02:00
Stephan Seitz
8cf2dc7f9a
Refactor locals.lua:
...
- shared query group stuff -> query.lua
- local-specific stuff from ts_utils -> locals.lua
2020-07-16 09:34:31 +02:00
Thomas Vigouroux
1849f30bb5
fix(ts_utils): be sure to parse to get root
...
Be sure to call `parser:parser()` to get a tree instead of getting the
tree directly. This will not cost anything is the buffer is freshly
parsed.
Fixes #181
2020-07-16 07:58:39 +02:00
Stephan Seitz
b480d25155
feat(textobjects): Add start to include preceding things like documentation
2020-07-15 20:12:52 +02:00
Stephan Seitz
69cabc69be
Add textobjects module
2020-07-14 22:34:43 +02:00
Stephan Seitz
8dfe085c41
Add ts_utils.highlight_node
2020-07-13 22:26:17 +02:00
Steven Sojka
26b3b3311e
fix(refactor): highlight def perf issue fix
2020-07-08 09:55:12 +02:00
Stephan Seitz
5642507f6a
Make luacheck happy
2020-07-05 19:21:06 +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
Steven Sojka
058e8d2296
feat(refactor): highlight usages module
2020-06-30 08:21:01 +02:00
kiyan42
cf72524b2f
add winnr to get_node_at_cursor
2020-06-19 14:13:23 +02:00
kiyan42
38af29a912
refacto: remove buf_state
...
- remove buf_state and related code
- add get_node_at_cursor()
- better incremental selection (code is localized)
2020-06-19 13:45:33 +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