Commit Graph

137 Commits

Author SHA1 Message Date
hrsh7th
e61f7c5acc Fix #513 2021-11-13 18:27:58 +09:00
hrsh7th
b3ee713d9b Fix cmdline confirmation bug 2021-11-10 14:12:28 +09:00
hrsh7th
6071062289 Fix #504 2021-11-10 04:28:32 +09:00
hrsh7th
1774ff0f84 Fix cmdline confirmation 2021-11-05 22:44:43 +09:00
hrsh7th
d9e4ac5997 Save undopoint 2021-11-05 21:31:34 +09:00
hrsh7th
e1f880b7e0 Use apply_text_edits to avoid making the unexpected indentation by '<CR>' 2021-11-05 21:29:34 +09:00
hrsh7th
c67ed9d8bc Fix #463 2021-11-03 02:29:06 +09:00
hrsh7th
b7f79a19c6 Fix #443 2021-11-02 01:52:51 +09:00
hrsh7th
674d2b1389 Rewrite keymap.lua (#452)
* Move feedkeys related codes to `cmp.utils.feedkeys`

* Improve mapping handling

* Fix test

* fmt
2021-11-01 22:15:28 +09:00
hrsh7th
e8cb695b0b Fix #436 2021-11-01 14:00:59 +09:00
hrsh7th
a6412e590c Fix #423 2021-10-29 13:50:00 +09:00
hrsh7th
6696c6a088 Fix #423 2021-10-28 20:08:08 +09:00
hrsh7th
1c498a5497 Add cmp.event:on() (#418) 2021-10-28 11:02:19 +09:00
hrsh7th
58d081300b Fix #420 2021-10-28 01:59:50 +09:00
Alex Tylor
b546f50f09 Expose get_selected_entry() from view module to main cmp module fixes #385 (#386)
* Expose get_selected_entry() from view module to main cmp module fixes #385

* add get_active_entry() also

* fix linting

* remove unused vars

Co-authored-by: alex.tylor <atylor@gmail.com>
2021-10-22 17:47:55 +09:00
hrsh7th
775a371660 Fix #375 2021-10-19 14:47:41 +09:00
hrsh7th
bad20dea88 Improve dot-register and undo-point (Hm... undopoint may be improved more) 2021-10-19 00:39:45 +09:00
hrsh7th
0f28030aef Improve macro & dot-repeat support (#363)
* manual support dot-repeat

* cmdwin and terminal

* cmdline only

* Fix

* fix

* Improve

* Fix test

* Support macro

* disable cmdline for now

* Simplify

* fmt

* consume once

* Ignore = type

* cmdline

* Remove cmdline features
2021-10-16 23:37:32 +09:00
hrsh7th
f0a6cca5b9 Fix #355 2021-10-16 22:09:01 +09:00
hrsh7th
2f2794decd refactor 2021-10-11 18:38:01 +09:00
hrsh7th
d8e6a865e4 Use instead of 2021-10-11 00:43:53 +09:00
hrsh7th
883eee5bbc Use <C-h> and support cmdwin 2021-10-10 00:01:15 +09:00
hrsh7th
339fe9177b Don't completion by CursorMoved event 2021-10-09 17:33:24 +09:00
hrsh7th
ada9ddeff7 Use floating window for completion menus (#224)
* WIP

* WIP

* Fix #226

* Insert text

* Emulate vim native

* テキトウ

* Tekito

* Move scrollbar impl

* aaa

* Ignore unexpected event

* fix

* fix scroll

* Refactor (conflict...)

* Fix bug

* Positive integer

* Refactor a bit

* Fix for pumheight=0

* fx

* Improve matching highlight

* Improve colorscheme handling

* fmt

* Add cmp.visible

* Fix pum pos

* ABBR_MARGIN

* Fix cel calculation

* up

* refactor

* fix

* a

* a

* compat

* Remove current completion state

* Fix ghost text

* Add feature toggle

* highlight customization

* Update

* Add breaking change announcement

* Add README.md

* Remove unused function

* extmark ephemeral ghost text

* Support native comp

* Fix docs  pos

* a

* Remove if native menu visible

* theme async

* Improvement idea: option to disables insert on select item (#240)

* use ghost text instead of insertion on prev/next item

* add disables_insert_on_selection option

* move disable_insert_on_select option as argumet on

* update README

* use an enum behavior to disable insert on select

* Adopt contribution

* Preselect

* Improve

* Change configuration option

* a

* Improve

* Improve

* Implement proper <C-e> behavior to native/custom

* Support <C-c> maybe

* Improve docs view

* Improve

* Avoid syntax leak

* TODO: refactor

* Fix

* Revert win pos

* fmt

* ghost text remaining

* Don't use italic by default

* bottom

* dedup by label

* Ignore events

* up

* Hacky native view partial support

* up

* perf

* improve

* more cache

* fmt

* Fix format option

* fmt

* recheck

* Fix

* Improve

* Improve

* compat

* implement redraw

* improve

* up

* fmt/lint

* immediate ghost text

* source timeout

* up

* Support multibyte

* disable highlight

* up

* improve

* fmt

* fmt

* fix

* fix

* up

* up

* Use screenpos

* Add undojoin check

* Fix height

* matcher bug

* Fix dot-repeat

* Remove undojoin

* macro

* Support dot-repeat

* MacroSafe

* Default item count is 200

* fmt

Co-authored-by: Eric Puentes <eric.puentes@mercadolibre.com.co>
2021-10-08 18:27:33 +09:00
hrsh7th
af70f40d2e Add is_insert_mode utility 2021-09-30 21:06:32 +09:00
hrsh7th
a63a1a23e9 Fix #262 2021-09-29 21:20:35 +09:00
hrsh7th
cc21a61910 Fix timing problem for some of the snippet engine
Fixes #236
2021-09-24 16:35:28 +09:00
hrsh7th
13e8b61371 Fix keymap bug 2021-09-19 13:40:27 +09:00
hrsh7th
77297a0a87 Remove virt_text_win_col 2021-09-18 00:30:12 +09:00
hrsh7th
97a639a060 Fix #217 2021-09-18 00:29:34 +09:00
hrsh7th
620eea94d3 Fix feeding autoindent keys 2021-09-16 15:53:48 +09:00
hrsh7th
c2e7736260 Fix #204 2021-09-16 12:49:52 +09:00
hrsh7th
a7359d76c6 Format/Lint 2021-09-14 15:01:01 +09:00
tzachar
13d4989c38 Rework #195 (#196)
* Slight complexity reduction

Do not loop twice over sources table, instead keep a table mapping names
to sources

* Update lua/cmp/core.lua

Co-authored-by: hrsh7th <hrsh7th@gmail.com>

* Fix multiple sources per name

* fix as suggested

Co-authored-by: hrsh7th <hrsh7th@gmail.com>
2021-09-14 14:58:54 +09:00
hrsh7th
445179dca8 Fix #191 2021-09-14 03:15:18 +09:00
hrsh7th
44ffee0e0c Add Vim script API docs 2021-09-14 01:29:02 +09:00
hrsh7th
03f121fa23 Improve vim source 2021-09-14 01:16:49 +09:00
tzachar
65b759cdab Slight complexity reduction (#195)
* Slight complexity reduction

Do not loop twice over sources table, instead keep a table mapping names
to sources

* Update lua/cmp/core.lua

Co-authored-by: hrsh7th <hrsh7th@gmail.com>

Co-authored-by: hrsh7th <hrsh7th@gmail.com>
2021-09-13 23:03:25 +09:00
hrsh7th
dc0bbfe10b Improve resolve confirm 2021-09-13 19:09:45 +09:00
hrsh7th
1cec1ecb31 Fix #188 2021-09-12 20:15:31 +09:00
hrsh7th
29679d493b Remove waiting source for filtering 2021-09-09 10:55:20 +09:00
haze
201fa80452 Add combine hl_mode to ghost_text virtual text (#182) 2021-09-08 23:55:55 +09:00
hrsh7th
8f559af081 Support vim-endwise 2021-09-08 19:25:02 +09:00
hrsh7th
fa031530ed Add THROTTLE_TIME constant 2021-09-08 13:07:30 +09:00
hrsh7th
5551dfab17 Improve completion invoking 2021-09-08 12:59:49 +09:00
hrsh7th
b6b15d5f6e Add experimental.ghost_text.hl_group 2021-09-07 01:38:49 +09:00
hrsh7th
b832719c68 Implement config.confirmation.get_commit_characters 2021-09-03 21:35:23 +09:00
hrsh7th
675a72e2e8 Check configuration 2021-09-03 21:29:53 +09:00
hrsh7th
62a6a6c063 Don't use nvim_set_decoration_provider for now 2021-09-03 21:29:13 +09:00
hrsh7th
157390d2c1 Invoke redraw if pum is beeing visible 2021-09-03 20:40:19 +09:00