Commit Graph

458 Commits

Author SHA1 Message Date
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
5bed2dc9f3 Fix cache problem #272 2021-10-07 14:34:07 +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
f56e6b5ee4 Fix #226 2021-09-29 19:52:27 +09:00
hrsh7th
cc21a61910 Fix timing problem for some of the snippet engine
Fixes #236
2021-09-24 16:35:28 +09:00
hrsh7th
d9a82c7616 Fix #239 2021-09-23 21:17:37 +09:00
hrsh7th
07f84fe8d6 Fix #232 2021-09-22 02:15:34 +09:00
hrsh7th
fdd3809893 Fix expr recursive mapping 2021-09-21 10:51:32 +09:00
hrsh7th
13e8b61371 Fix keymap bug 2021-09-19 13:40:27 +09:00
hrsh7th
7c8876330d Fix #220 2021-09-19 02:23:58 +09:00
hrsh7th
b99d7292b0 Fix #219 2021-09-19 01:49:07 +09:00
hrsh7th
7bfa33a8db Improve performance (maybe) 2021-09-19 01:06:29 +09:00
hrsh7th
86c2b1bb63 Format 2021-09-18 00:35:31 +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
b47a703a48 RFC: CmpStatus command (#210)
* Add `CmpStatus` command

* Update headings

* Fix heading

* Update headings

* Add README.md

* Fix tests

* Force invoke InsertEnter
2021-09-17 13:29:28 +09:00
hrsh7th
620eea94d3 Fix feeding autoindent keys 2021-09-16 15:53:48 +09:00
hrsh7th
12ed912c36 Add the ability to specify source priority manually 2021-09-16 13:06:26 +09:00
hrsh7th
ca77ec6dcc Change default format.deprecated value 2021-09-16 12:54:51 +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
2c92fef040 Advertise a bit 2021-09-14 13:08:04 +09:00
hrsh7th
445179dca8 Fix #191 2021-09-14 03:15:18 +09:00
hrsh7th
a212356641 Fix macro again 2021-09-14 03:12:39 +09:00
hrsh7th
6fa1e70b48 Fix macro 2021-09-14 01:52:59 +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
hrsh7th
6173796b2b Support Vim script plugins 2021-09-13 23:57:59 +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
71b9ebd019 Hijack agressively 2021-09-13 17:55:38 +09:00
hrsh7th
f7b4277c99 Format 2021-09-13 16:45:17 +09:00
hrsh7th
f3af9e2ee6 Refactor keymap 2021-09-13 16:43:23 +09:00
hrsh7th
af73e87fd8 We should adopt InsertLeave event 2021-09-13 13:58:04 +09:00
hrsh7th
e46ae3b62e Add keymap tests 2021-09-13 12:49:58 +09:00
hrsh7th
9c460395a0 InsertMode is required 2021-09-13 01:05:31 +09:00
hrsh7th
a78894a09a Implement enabled=false configuration 2021-09-13 00:59:48 +09:00
hrsh7th
1cec1ecb31 Fix #188 2021-09-12 20:15:31 +09:00
hituzi no sippo
a58712bf16 fix StyLua command (#190)
* style: fix StyLua glob pattern

* style: fix style with StyLua

run './utils/stylua --config-path stylua.toml --glob 'lua/**/*.lua' -- lua'
2021-09-11 20:18:44 +09:00
hrsh7th
8fb4ee1075 Support macro with commit characters 2021-09-10 03:23:52 +09:00
hrsh7th
613328c375 Expose built-in comparators 2021-09-10 01:03:07 +09:00
hrsh7th
a50688066b Fix #185 2021-09-09 18:15:56 +09:00
hrsh7th
bfda45f0d7 format 2021-09-09 17:55:38 +09:00
hrsh7th
1130da0aeb Support <C-r>= and <Cmd> 2021-09-09 17:21:44 +09:00
hrsh7th
ff55c1bbca Improve key handling 2021-09-09 15:37:32 +09:00
Iron-E
ae54dcdc49 Reduce use of VimL (#168)
* perf(context): reduce use of `cmd` and `fn`

* perf(float): reduce use of `cmd` and `fn`

* perf(init): reduce use of `cmd` and `fn`

* perf(menu): reduce use of `cmd` and `fn`

* perf(plugin): reduce use of `cmd` and `fn`

* docs(README): reduce use of `cmd` and `fn`
2021-09-09 11:12:22 +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