Commit Graph

124 Commits

Author SHA1 Message Date
hrsh7th
5054c14490 dev (#956)
* Adjust empty line count

* Implement vim.api.nvim_create_autocmd (#844)

* Implement vim.api.nvim_create_autocmd

* Only use vim.api.nvim_create_autocmd on nighly

* Cleanup

* cleanup

* Rename autos.lua to autocmds.lua

* Fix forgot to rename autos to autocmds

* Remove legacy autocmd

* Add descriptions on autocmds

* Update descriptions on autocmds

* Update CmpStatus command to lua API (#922)

Signed-off-by: Micah Halter <micah@balena.io>

* Move highlights to nvim_set_hl lua API (#925)

Signed-off-by: Micah Halter <micah@balena.io>

* Add default to highlight

* Refactor autocmds

* fmt

* Improve performance

* Fix bug

* Improve matching logic
Fixes https://github.com/hrsh7th/nvim-cmp/discussions/954

* Fix format

* Improve performance
Fix #825

* Fix cmdline redraw bug

* Fix event

Co-authored-by: hrsh7th <>
Co-authored-by: zer09 <zer09@users.noreply.github.com>
Co-authored-by: Micah Halter <micah@mehalter.com>
2022-05-04 01:47:01 +09:00
hrsh7th
f841fa6ced Reduce flicker 2022-05-01 03:27:16 +09:00
hrsh7th
801a9f98bb Improve macro handling 2022-04-08 22:04:08 +09:00
hrsh7th
5e794cdf5b Improve timing 2022-03-30 17:10:07 +09:00
hrsh7th
ba47440a97 Improve common string mapping instruction 2022-02-14 13:26:36 +09:00
hrsh7th
4bc038f72d fmt 2022-02-13 18:53:30 +09:00
hrsh7th
a8150a2c7d Improve complete_common_string 2022-02-13 16:47:11 +09:00
hrsh7th
c07350181f Implement matching config.
Fix #796
2022-02-13 16:44:45 +09:00
hrsh7th
070c5572ad Implement shell like common string completion.
Fix #785
2022-02-13 14:34:28 +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
hrsh7th
a7fea2ca9f Decrease THROTTLE_TIME 2022-02-05 14:00:06 +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
7a1e484806 Improve recently used 2022-01-20 17:06:48 +09:00
hrsh7th
098182e2c2 Fix #734 2022-01-15 18:56:29 +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
21456a109e fmt/test 2022-01-10 23:01:47 +09:00
hrsh7th
dff06958a7 Fix #716 2022-01-10 22:57:58 +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
5cf5576ceb Fix #683 2021-12-30 22:23:17 +09:00
hrsh7th
da4c071f6b Fix #648 2021-12-14 22:41:45 +09:00
hrsh7th
47d7cfc06a Fix #640 2021-12-14 17:46:31 +09:00
hrsh7th
edc2a503ee Fix #610 2021-12-05 18:22:03 +09:00
hrsh7th
c2652f0ac0 Implement #349 2021-12-02 15:56:42 +09:00
hrsh7th
d17d41bdbd Fix #595 2021-12-01 20:46:34 +09:00
hrsh7th
a61c36a639 fmt 2021-12-01 15:03:59 +09:00
hrsh7th
f2f9a3325c Use vim.lsp.util.apply_text_edits instead of vim-vital-vs 2021-12-01 14:17:16 +09:00
hrsh7th
2e4270d028 Improve incomplete handling 2021-11-24 12:57:04 +09:00
hrsh7th
9b5d64d906 Fix #567 2021-11-23 19:37:25 +09:00
hrsh7th
876dd1a427 Fix #563 2021-11-23 19:29:01 +09:00
hrsh7th
1c7f73aa4a Improve first display 2021-11-19 16:56:52 +09:00
hrsh7th
286b9f78d1 Refactor get_active_entry and core.filter (#535)
* Refactor get_active_entry and core.filter

* Refactor source.lua
2021-11-17 22:38:56 +09:00
hrsh7th
3e5ee9c789 Don't feed <C-f> manually but check auto-indentation 2021-11-16 04:16:37 +09:00
hrsh7th
c194a3dbba Add tests 2021-11-15 12:44:41 +09:00
hrsh7th
753f5b7c92 Fix #516 (#517)
* Fix #516

* Fix

* Fix and tests

* fmt lint
2021-11-14 02:47:31 +09:00
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