Commit Graph

275 Commits

Author SHA1 Message Date
hrsh7th
6790f0a853 Fix #320 2021-10-10 23:49:39 +09:00
hrsh7th
20aa77b492 format&lint 2021-10-10 14:04:39 +09:00
hrsh7th
f4c33ac7a9 Remove abbr formatting 2021-10-10 14:00:59 +09:00
hrsh7th
0a31d67219 Lazy buffer creation 2021-10-10 13:57:37 +09:00
hrsh7th
d901dae302 Fix #296 2021-10-10 13:13:25 +09:00
hrsh7th
b16663f780 Improve 2021-10-10 12:50:35 +09:00
hrsh7th
370e6ff076 Use nvim_win_hide instead o nvim_win_close for supporting custom menu on cmdwin 2021-10-10 12:23:39 +09:00
hrsh7th
babb8023c6 Add cmp.visible 2021-10-10 12:13:57 +09:00
hrsh7th
ae42ce7b05 More fallback
Fix #286
2021-10-10 12:05:41 +09:00
hrsh7th
3a51a8ec7b Fix #294 2021-10-10 11:57:02 +09:00
hrsh7th
2ebdccf61a Fix #306
Fix #296
Fix #293
Fix #291
2021-10-10 11:54:30 +09:00
Jongwook Choi
68f7eeb3f0 Make the pum window property respect future changes of &pumblend (#313)
PR #310 added a support for the pumblend property for the custom
floating completion pop-up menu, but the winblend option is set
globally which doesn't respect future changes (e.g., `set pumblend=..`).

Such window options for the pop-up window that might be changed later
would need to be set when the floating window is being opened.
2021-10-10 01:33:36 +09:00
Aquib
20b99bc54b adding the pumblend property to floating pum window (#310)
* adding the pumblend property to floating pum window

* setting pumblend value directly
2021-10-10 00:31:59 +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
Hexin
12a24c0eb3 Check whether option exists (#301) 2021-10-09 15:18:18 +09:00
Hexin
6ca23ea407 Force cursorlineopt=line for selection highlighting in floating window (#295) 2021-10-09 14:02:57 +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
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