Commit Graph

575 Commits

Author SHA1 Message Date
Yu Zhang
04e0ca376d fix: one more item than max_item_count is displayed (#1811) 2024-02-02 15:59:47 +09:00
Mehdi
41d7633e41 feat: sort source entries before slicing when using max_item_count (#1765)
* feat: sort source entries beforce slicing when using max_item_count

* feat: optimize filtering by max_item_count after sort

* fix: useless check if max_item_counts map is initialized

* fix: directly use entry source object when checking max_item_count
2023-12-10 20:37:02 +09:00
GyouzaRu
5e1fa02553 Fix: Buffer is not 'modifiable' (#1677) 2023-12-10 20:22:00 +09:00
Riley Bruins
55734c8b70 feat: match default border color to standard neovim float border hl (#1689) 2023-12-10 20:20:48 +09:00
Adam Price
c01a038469 Mark non-required setup fields as optional (#1723)
... to correct "Missing required fields" messages from lua_ls
2023-12-10 20:14:50 +09:00
hrsh7th
36eb3a6917 add test-case placeholders 2023-12-10 19:59:39 +09:00
Dan Salvato
82ba05c784 Fix fuzzy matcher adding invalid matches (#909) (#1420) 2023-12-10 19:57:59 +09:00
PlankCipher
0b751f6bee fix(ghost_text): ephemeral-like inline ghost-text workaround (#1688)
Refs:
  - https://github.com/hrsh7th/nvim-cmp/pull/1645
  - https://github.com/neovim/neovim/issues/24797
2023-11-06 17:58:22 +09:00
Maria José Solano
51260c02a8 fix: remove usages from vim.lsp.util.parse_snippet (#1734) 2023-10-25 10:54:30 +09:00
jmp
d3a3056204 ci: fix broken tests (#1729)
feedkeys_spec.lua:
In the "backspace test spec, the backspace
setting is given an integer, but only accepts
strings. Here, I assume that 0 was intended to
set backspace to a nil value, which can be done
with the empty string. I also corrected the name
of the test spec.

core_spec.lua:
In the "textedit" test spec, the actual and
expected outputs as well as the actual and
expected end characters did not match.
2023-10-18 15:37:12 +09:00
hrsh7th
5dce1b778b Format with stylua 2023-08-26 15:31:42 +00:00
Jongwook Choi
026ef9445e docs: Add comments and type annotations for sorting comparators (#1687) 2023-08-27 00:31:28 +09:00
PlankCipher
51f1e11a89 fix(ghost_text): ephemeral causes a false positive of no inline support (#1645) 2023-08-12 11:55:52 +09:00
Tyler Miller
969c5affa5 perf(core): simplify and improve find_line_suffix() (#1675)
Call `string.match()` once instead of calling `string.sub()` and
`string.find()` multiple times in a loop.
2023-08-12 11:52:37 +09:00
hrsh7th
992fa0dd47 Format with stylua 2023-08-12 02:51:03 +00:00
Maria José Solano
1c03ebc7dc feat: add toggle_doc functionality (#1647)
* feat: Add toggle_doc functionality

fix: Update docs view on entry change

* Replace toggle logic by open/close

* add docs and pinned flags

* add faq for disabling docs

* chore(git): ignore .DS_Store

---------

Co-authored-by: hrsh7th <629908+hrsh7th@users.noreply.github.com>
2023-08-12 11:50:49 +09:00
hrsh7th
3b9f28061a add context check for invalid detection 2023-08-10 16:55:01 +09:00
hrsh7th
6c84bc75c6 implement is_invalid detection 2023-08-10 16:52:10 +09:00
hrsh7th
2743dd989e improve pattern handling 2023-06-30 21:49:25 +09:00
hrsh7th
e1f1b40790 Format with stylua 2023-06-23 04:29:59 +00:00
hrsh7th
9e49ed3fee fix confirm resolve 2023-06-23 13:29:35 +09:00
kyoh86
fa492591fe fix type of the config.autocomplete to accept false (#1624) 2023-06-19 11:32:54 +09:00
tj-moody
b8c2a62b3b Update ghost_text type to allow true (#1616) 2023-06-11 13:21:19 +09:00
hrsh7th
69e7d280cb Format with stylua 2023-06-10 15:13:53 +00:00
fengwk
48c0bc7e73 fix: huge single line performance (#1433) (#1615) 2023-06-11 00:13:36 +09:00
hrsh7th
09ff53ff57 Format with stylua 2023-06-09 12:27:08 +00:00
hrsh7th
559b688cda restore max_item_count 2023-06-09 21:26:42 +09:00
Folke Lemaitre
6f118169af fix(async): properly trigger callbacks when canceling and fix delays in throttle.sync (#1611) 2023-06-09 19:08:28 +09:00
Noah Friedman
b5a636d46c Improve types related to mapping definitions (#1604) 2023-06-09 02:07:07 +09:00
EJ
a2198e3d61 fix: handle godot LSP better (#1592) 2023-06-09 02:06:37 +09:00
hrsh7th
b43bfaf322 fix(entry): fix matches highlight information
fixes #1426
2023-05-28 22:47:11 +09:00
hrsh7th
3874e09e80 fix(entry): remove offset + 1 for tailwindcss 2023-05-28 22:33:20 +09:00
hrsh7th
1088b3743b Add extmark inline feature detection 2023-05-27 23:06:46 +09:00
hrsh7th
15e8a636df Restore schedule_wrap 2023-05-27 23:02:35 +09:00
Hawtian Wang
a0225043ab fix entry highlight in complete-menu (#1593) 2023-05-26 15:16:03 +09:00
hrsh7th
8a3d2dd764 Remove max_item_count from source configuration 2023-05-26 02:47:45 +09:00
Folke Lemaitre
abb5c7519d feat: cmp async (#1583) 2023-05-26 02:46:53 +09:00
Anshuman Medhi
950d0e3a93 ghost text inline (#1588) 2023-05-26 00:02:26 +09:00
Folke Lemaitre
768548bf49 perf(source): only filter up to 200 entries and dont use the cache (#1574) 2023-05-16 14:00:44 +09:00
François Fleur
d153771162 fix(ghost_text): safely apply virtual_text highlight (#1563) 2023-05-12 15:42:39 +09:00
hrsh7th
935b4069ce Improve misc.merge 2023-05-08 11:41:15 +09:00
hrsh7th
5a80cd4eca Fix #897 2023-05-07 15:00:04 +09:00
Felipe Gomes
1cad30fcff Added a modified=false to documentation buffer, so it can be removed without E89 errors (#1557) 2023-05-05 15:54:16 +09:00
hrsh7th
0e120a6373 Fix #1556 2023-05-05 15:24:55 +09:00
Konstantin Labun
8b76965ed0 fix 1533, add regression test (#1558) 2023-05-05 14:26:55 +09:00
hrsh7th
0f47dcaf7e Add buftype=nofile for entries_win and docs_win
- reddit user mention this...
2023-05-04 19:35:24 +09:00
hrsh7th
8d2f190506 Fix #1550 2023-05-04 03:09:56 +09:00
hrsh7th
bd168a2f86 Format with stylua 2023-05-03 17:06:27 +00:00
hrsh7th
833954209a Add test for #1552
Close #1552
2023-05-04 02:06:01 +09:00
hrsh7th
9b0bc5f9cd Revert #1534 temporaly 2023-05-04 00:01:00 +09:00