hrsh7th
20152c6afd
Fix #789
2022-02-12 21:01:22 +09:00
hrsh7th
26a9184c88
Add filetype config
...
Use view.entries == 'native' instead of experimental.native_menu
2022-02-11 15:20:24 +09:00
Jonas Strittmatter
ad3c1adbc3
Refactor context module, return false (not {}) in context.in_treesitter_capture ( #777 )
2022-02-11 14:23:59 +09:00
Daniel Fortes
3a2f1bbc55
Added event_chars property to confirm_done event ( #782 )
...
* Added event_chars property to confirm_done event
Currently it seems there is no way for someone listening to the
`confirm_done` event to know exactly what character was used to commit
the completion confirmation.
This commit adds a `event_chars` property to the `confirm_done` event.
Its value is just the `chars` variable form the `core.on_keymap`
function.
* Renamed `commid_chars` to `commit_character`
2022-02-11 14:11:00 +09:00
Jonas Strittmatter
df05fe6ff4
Fix: close the view if cmp.enabled = false and the user types some text ( #781 )
...
A scenario where this lead to unintended behaviour previously was the following:
If cmp.enabled was configured such that it disabled cmp when in a comment,
and the user typed '--' in a lua file (this starts a comment), the cmp window
would not close if further text is typed on that line (although cmp should be disabled).
2022-02-11 13:36:54 +09:00
hrsh7th
a7fea2ca9f
Decrease THROTTLE_TIME
2022-02-05 14:00:06 +09:00
hrsh7th
de69c657eb
Fix menu position for horizontal splitting
2022-02-02 19:25:25 +09:00
tzachar
124f1611f1
Statusline view in search mode or command line mode ( #729 )
...
* Search mode horizontal view
Enabled by setting `experimental.horizontal_search = true`
* use stylua
* move to a floating window instead of abusing status line
* pass all tests
* rework
1. rename entries view file and memeber to wildmenu_entries_view
2. move config to config.view.entries
3. support both in insert mode and cmdline
4. make separator configurable by config.view.separator
* rearange wildmenu config
Changed config to:
```lua
view = {
entries = {name = 'wildmenu', separator = '|' }
},
```
* allow view.entries to be either a literal string or a table
2022-02-01 16:47:34 +09:00
hrsh7th
d6838996da
improve
2022-01-31 17:04:38 +09:00
hrsh7th
55f04e49dc
Improve sync API
2022-01-31 14:30:57 +09:00
hrsh7th
0d23640fb6
Fix #757
2022-01-31 14:27:33 +09:00
hrsh7th
f4bb6ffdb1
Improve keymap ( #768 )
...
* Improve keymap
* improve
* rename
* Add tests
* Use nightly for testing
* Enable failing test
* Add manual test case
2022-01-31 14:16:48 +09:00
hrsh7th
d93104244c
Wait for filtering completion
2022-01-25 16:27:21 +09:00
hrsh7th
57101a2e26
Re fix #754
2022-01-25 11:51:06 +09:00
hrsh7th
f960d4829e
Fix Ci
2022-01-25 10:12:09 +09:00
hrsh7th
2d67b6dd76
Fix #756
2022-01-25 10:06:36 +09:00
hrsh7th
27123b1297
Fix #754
2022-01-24 23:46:47 +09:00
hrsh7th
1797f9e1ac
fmt&lint
2022-01-20 17:26:05 +09:00
hrsh7th
7a1e484806
Improve recently used
2022-01-20 17:06:48 +09:00
hrsh7th
8fc8d31cf4
Support import completion
2022-01-18 19:32:51 +09:00
hrsh7th
682818b211
evacuate -> fallback
2022-01-18 19:14:38 +09:00
hrsh7th
4c0a6512a0
Fix cmdline mapping again
2022-01-17 19:43:38 +09:00
hrsh7th
cea9c2a0c9
fix cmdline mapping
2022-01-17 19:28:16 +09:00
hrsh7th
c23d810a66
Fix #746
2022-01-17 19:20:09 +09:00
hrsh7th
a54064d940
Add comments
2022-01-16 01:00:53 +09:00
hrsh7th
440897ef58
Fix #741
2022-01-16 00:55:01 +09:00
hrsh7th
49d94e0ef3
Fix keymap.t timing
2022-01-16 00:53:03 +09:00
hrsh7th
703e915b7f
Improve keymapping handling
2022-01-16 00:37:28 +09:00
hrsh7th
243d5f4a12
Fix expression resolving timing
2022-01-15 22:56:01 +09:00
hrsh7th
ec972710d3
Solve expression manually
2022-01-15 22:53:10 +09:00
hrsh7th
2ed0cdab36
Revert expr mapping handling
2022-01-15 20:45:21 +09:00
hrsh7th
76d92fca64
Fix cmdline completion redraw
2022-01-15 20:25:34 +09:00
hrsh7th
9f3440e765
Add comments
2022-01-15 19:50:19 +09:00
hrsh7th
008de7eb8a
Avoid expr mapping message ( #738 )
...
* Avoid display message by register mapping
* Escape to json
* Improve tests
* fmt
* lint
* Fix evacuate condition
* Default silent
* fallback mapping should be silent by default
* Support legacy nvim
2022-01-15 19:18:04 +09:00
hrsh7th
098182e2c2
Fix #734
2022-01-15 18:56:29 +09:00
hrsh7th
bce1b2d780
Fix expr keymap handling
2022-01-14 18:45:28 +09:00
hrsh7th
614e00de24
Use utf-16 at this time
2022-01-13 23:12:18 +09:00
hrsh7th
f798855990
Fix offset encoding enum
2022-01-13 22:48:11 +09:00
hrsh7th
474e716e3d
Speficy offset encoding
2022-01-13 21:46:03 +09:00
hrsh7th
ce0a3581e0
Improve word creation
2022-01-12 01:19:01 +09:00
hrsh7th
5ddf3732c5
Fix #721
2022-01-11 18:47:21 +09:00
hrsh7th
96c392dee3
Improve tests
2022-01-11 12:24:44 +09:00
hrsh7th
d6aaea47f4
Improve keymap handling ( #720 )
...
* Improve keymap handling
* Simplify
* Fix tests
* Fix callback no expr mapping
* Rename functions
* Use manual key conversion logic
* fmt
2022-01-11 02:18:09 +09:00
hrsh7th
ef5bdb43fa
Improve redraw in search mode
2022-01-10 23:52:23 +09:00
hrsh7th
21456a109e
fmt/test
2022-01-10 23:01:47 +09:00
hrsh7th
dff06958a7
Fix #716
2022-01-10 22:57:58 +09:00
hrsh7th
e0cfbbbaa8
Re-fix flickering
2022-01-10 22:39:58 +09:00
hrsh7th
89643cc287
Fix hlsearch
...
Fix https://github.com/hrsh7th/cmp-cmdline/issues/29#issuecomment-1008821502
2022-01-10 22:06:57 +09:00
hrsh7th
3f7b7b258a
Add complete_done event and improved the recently_used sorter.
...
Fix #708
2022-01-08 13:38:55 +09:00
hrsh7th
a4f83fd839
Fix #589
2022-01-08 13:33:53 +09:00