Benoît CORTIER
8664d70e73
Replace Editor::current
by a macro
...
This is necessary to workaround ownership issues across function calls.
The issue notably arised when implementing the registers into `Editor`
and I was getting annoyed again when implementing copy/pasting into
system clipboard.
The problem is addressed by using macro calls instead of function calls.
There is no notable side effect.
2021-06-18 09:38:10 +09:00
Wojciech Kępka
6fc0e0b5fb
completion: Fix unimplemented autocomplete
2021-06-08 09:38:53 +09:00
Blaž Hrastnik
87d0617f3b
Completion: Format docs tabs & highlight in the doc's native language
2021-05-30 17:13:02 +09:00
Blaž Hrastnik
3810650a6b
Completion: Render non-markdown docs too
2021-05-30 10:36:58 +09:00
Blaž Hrastnik
d54ae09d3b
ESC should exit both completion and insert mode
2021-05-29 10:37:47 +09:00
Blaž Hrastnik
094203c74e
Update deps, introduce the new tree-sitter lifetimes
2021-05-28 00:00:51 +09:00
Blaž Hrastnik
b114cfa119
Display more data in completion popups.
2021-05-22 17:33:42 +09:00
Blaž Hrastnik
8949347e2c
Completion: apply additionalTextEdits.
...
Used for adding imports to the file when completing.
2021-05-17 16:35:34 +09:00
Blaž Hrastnik
ccdebb99b5
Drop some useless imports.
2021-05-09 18:32:40 +09:00
Blaž Hrastnik
ff4c1d05de
Replace the Clear widget with buffer.clear/clear_with.
2021-05-09 18:13:50 +09:00
Blaž Hrastnik
3038c2ef6d
ui: Draft for completion doc preview.
2021-05-03 18:22:29 +09:00
Blaž Hrastnik
3e5f24a9d5
lsp: support both utf-8 and utf-16 offsets.
...
Still need to implement the clangd encoding negotiation, but it's
a start. Should also manually override to utf8 for pyls.
2021-04-14 15:39:31 +09:00
Blaž Hrastnik
7c44443994
Handle c-n, c-p, etc. autocompletion events.
2021-04-06 15:34:52 +09:00
Blaž Hrastnik
95d0bba81a
ui: Improve completion state handling.
2021-04-05 18:23:37 +09:00
Blaž Hrastnik
0dbd5b61ef
Simplify code by providin cx.current() = (view, doc).
2021-04-01 11:01:26 +09:00
Blaž Hrastnik
6c4093c946
Weave through view_id references so that views into one file have independent selects.
2021-03-31 17:17:01 +09:00
Blaž Hrastnik
a24c3fff54
Filter the completion menu based on text entered.
2021-03-27 12:08:44 +09:00