Skip to content

Releases: Saghen/blink.cmp

v0.9.0

01 Jan 17:37
v0.9.0
d534f9e
Compare
Choose a tag to compare

BREAKING CHANGES

  • rename BlinkCmpCompletionMenu* autocmds to BlinkCmpMenu*
  • set default documentation max_width to 80
  • rename align_to_component to align_to, add cursor option

Features

  • add back support for showing when moving onto trigger character (cf9cc6e), closes #780 #745
  • add callback option to cmp.show (33b82e5), closes #806
  • add callback to hide/cancel, rework show callback (73a5f4e), closes #806
  • add type annotation for keymap function params (#829) (3d7e773)
  • escape filenames in cmdline (e53db6a), closes #751
  • nix: use Cargo.lock instead of hash (#773) (d9513ee)
  • nix: use filesets (#772) (e524347)
  • rename align_to_component to align_to, add cursor option (9387c75), closes #344
  • rename BlinkCmpCompletionMenu* autocmds to BlinkCmpMenu* (fa4312c)
  • run callback for cmp.show, even if menu is open (a1476d3)
  • set default documentation max_width to 80 (1a61625)
  • support @ mode for cmdline (4c2744d), closes #696
  • support configuring clipboard register for snippets (8f51a4e), closes #800
  • support unsafe no lock for fuzzy matcher (6f8da35), closes #817
  • support windows drives for path source (98fded2), closes #612
  • use filter text on non-prefixed test in cmdline (8c194b6)

Bug Fixes

  • accept/brackets: respect item.kind when moving cursor (#779) (c54dfbf)
  • add missing regex file for path source (1118d07), closes #834
  • alignment double offset on align_to (24d6868)
  • apply non-snippet detection to non-snippet kinds (434ea2b), closes #790
  • avoid namespace collision with vim.api.keyset.keymap (63718e9), closes #767
  • check enabled before showing trigger and on mapping (e670720), closes #716
  • clamp text edit end character to start character, if lines equal (6891bcb), closes #634
  • create target/release dir, if it doesn't exist (4020c23), closes #819
  • documentation losing syntax highlighting on doc reopen (#768) (ef59763), closes #703
  • don't prevent show() when ghost-text is visible (#796) (59d6b4f)
  • filter help tags by arg prefix (21da714), closes #818
  • flatten leaving empty tables (#799) (021216d)
  • getcmdcompltype returning empty string (eb9e651), closes #696
  • remove redundant is enabled check (f4add54)
  • return incomplete on err/nil from lsp (1ef9bb9), closes #719
  • set default details to empty array (0350fee)
  • trigger context initial_kind resetting (3ef27bc), closes #803
  • use correct regex for filenames (8df826f), closes #761
  • use existing arg prefix for help filtering in cmdline (c593e83)
  • wait for all LSPs to respond before showing (86a13ae), closes #691

New Contributors

Full Changelog: v0.8.2...v0.9.0

v0.8.2

23 Dec 22:38
v0.8.2
5f44268
Compare
Choose a tag to compare

Highlights

Features

  • improve auto_show flexibility (#697) (a937edd)
  • improve error messages for pre built binaries (c36b60c)
  • sort cmdline completions case insensitive (b68e924), closes #715
  • support dynamic selection mode (c1017f0)

Bug Fixes

  • add git to nix build dependencies and shell (ed1d4f5)
  • add java to blocked filetypes for semantic token auto_brackets (#729) (140ed36)
  • add missing git.lua for downloader (f7bef25)
  • auto_show function logic (#707) (4ef6d1e), closes #697
  • check version sha of locally built, better detection (3ffd31d), closes #68
  • doc scrollbar render (#724) (8f71ccb)
  • inherit package.cpath in worker thread (#726) (b6c7762), closes #725
  • notifications: add title to notifications (#722) (f93af0f)
  • prebuilt binary error message always firing (cab0e8e)

New Contributors

Full Changelog: v0.8.1...v0.8.2

v0.8.1

21 Dec 22:04
v0.8.1
a9a0f96
Compare
Choose a tag to compare

Documentation can now be found at https://cmp.saghen.dev

Features

  • path: sort directories first, then by name lowercase (400de65)

Bug Fixes

  • checkhealth after checksum changes (d8ffbe9), closes #669
  • duplicate cursor moved event firing (e360828)
  • get global mapping for fallback in cmdline mode (92da013), closes #674
  • internal types for config not using strict config (bdece4e)
  • path: no items when file fails stat (4218120), closes #688
  • type signature for enabled indicating ctx could be passed (3cb7208), closes #695
  • use context.get_line() when getting preview undo text edit (0f92fb8), closes #702
  • wrong key upstreamed by cmdline_events (4757317), closes #700

Full Changelog: v0.8.0...v0.8.1

v0.8.0

20 Dec 16:33
v0.8.0
ca05bb3
Compare
Choose a tag to compare

Important

sources.completion.enabled_providers has been moved to sources.default

Highlights

  • Cmdline completions! (#323)
  • Sorting now respects LSP hints more directly and doesn't sort alphabetically or by kind by default
  • Sources v2 (#465), adds support for async sources, timeouts, smarter fallbacks, adding sources at runtime and more!

Features

  • extra_curl_args option for prebuilt binaries download (4c2e9e7), closes #481
  • add [ to show_on_x_blocked_trigger_characters (#632) (046a2af)
  • add { to show_on_x_blocked_trigger_characters (712bd30), closes #597
  • add global transform_items and min_keyword_length (e07cb27), closes #502 #504
  • allow providers customize documentation rendering (#650) (bc94c75)
  • cmdline completions (#323) (414d615)
  • cmdline: allow configuring separate cmdline preset (#532) (13b3e57)
  • config: add partial types for each config option (#549) (c3bba64), closes #427
  • config: allow plugins to disable blink for some buffers (#556) (c8e86a3)
  • demote snippets from LSP explicitly (b7c84ac)
  • disable keymaps when no cmdline sources are defined (88ec601)
  • enable auto-brackets by default (4d099ee)
  • enable treesiter highlight in menu per source (#526) (f99b03c), closes #438
  • ensure nvim 0.10+ on startup (30a4a52)
  • expose cmp.is_visible() api (2c826d9), closes #535
  • filter out LSP text items by default (814392a)
  • honor extended luasnip filetypes and cache each (#625) (c3ef922)
  • ignore when source defining trigger character returns no items (684950d), closes #597
  • include ghost text in is_visible (1006662)
  • increase max length of buffer entry to 512 characters (4ab0860), closes #478
  • merge resolved item with item (7a83acf), closes #553
  • reset whole luasnip cache on snippets added (bff6c0f)
  • resolve help tags ourselves in cmdline (02051bf), closes #631
  • rework cmdline source (8f718cc)
  • rework download logic with checksums (#629) (53d22cb)
  • set cursor position for additional text edits (f0ab5e5), closes #223
  • set path to fallback to buffer by default (c9594d5)
  • sort on score and sort_text only by default, disable frecency and proximity on no keyword (76230d5), closes #570
  • sources v2 (#465) (533608f), closes #386 #219 #328 #331 #312 #454 #444 #372 #475
  • support callback on cmp.accept() (be3e9cf)
  • support configuring prefetch_on_insert, disable by default (9d4286f)
  • trigger: prefetch on InsertEnter (#507) (7e98665)
  • use block icon for tailwind items (#544) (1502c75)
  • use number[] for ui_cmdline_pos (80a5198)
  • validate config doesn't have erroneous fields (834163e), closes #501
  • window: add filetype configuration (#499) (eb6213b)

Bug Fixes

  • accept: schecule fuzzy.access using uv.new_work (#522) (f66f19c)
  • account for cmdheight in cmdline_position (thanks @lnrds!) (6b67d16), closes #538
  • add '=' to cmdline trigger characters (fb03ca7), closes #541
  • add back, skip undo point for snippet kinds (1563079)
  • add gcc to flake.nix (380bccf), closes #581
  • add icon gap on ellipsis, remove references to renderer (793b6ac)
  • add mode to context type (f1afb8c)
  • allow 'none' preset for keymaps in validation (bf1fd6a)
  • always get latest keyword (13853d5), closes #539
  • check raw key for space in cmdline_events (7be970e)
  • check that scrollbar is not nil (790369b), closes #525
  • clear LuaSnip cache on snippet updates (#664) (b1b58e7)
  • cmdline event suppression and scrollbar rendering ([e3b3fde](https://github.com/Saghen/bl...
Read more

v0.7.6

11 Dec 01:02
v0.7.6
ae5a4ce
Compare
Choose a tag to compare

Bug Fixes

  • fallback not working for built-in mappings (ae5a4ce), closes #489

Full Changelog: v0.7.5...v0.7.6

v0.7.5

10 Dec 19:40
v0.7.5
68ba8ae
Compare
Choose a tag to compare

Note

blocked_filetypes has been replaced with a more generic enabled function. Check the default configuration for how to block filetypes with it

Features

  • use enabled function instead of blocked_filetypes (a6636c1), closes #440

Bug Fixes

  • fallback: make fallback work with buffer-local mappings (#483) (8b553f6)

Full Changelog: v0.7.4...v0.7.5

v0.7.4

09 Dec 16:46
v0.7.4
9fa3fe2
Compare
Choose a tag to compare

Features

  • support non-latin characters for keyword and buffer source (51d5f59), closes #130 #388

Bug Fixes

  • check response.err instead of response.error (#473) (e720477)
  • completion.trigger.show_in_snippet (#452) (a42afb6), closes #443
  • documentation window auto show once and for all (624676e), closes #430
  • fill in cargoHash (aa70277)
  • highlight: fix invalid highlight for doc separator (#449) (283a6af)
  • luasnip resolve documentation (85f318b), closes #437
  • make buffer events options required (d0b0e16)
  • render: not render two separator for doc window (#451) (fc12fa9)
  • revert luasnip source to use current cursor position (5cfff34)

New Contributors

Full Changelog: v0.7.3...v0.7.4

v0.7.3

03 Dec 21:30
v0.7.3
777d6fb
Compare
Choose a tag to compare

Bug Fixes

  • revert to original logic for updating menu position (99129b6), closes #436

Full Changelog: v0.7.2...v0.7.3

v0.7.2

03 Dec 18:05
v0.7.2
af7c5d9
Compare
Choose a tag to compare

Important

A native luasnip source has been added, please see the README for the configuration

Features

Bug Fixes

  • avoid removing words for current line on out of focus buffers (2cbb02d), closes #433
  • documentation not updating after manually opened (8c1fdc9), closes #430
  • handle nil line (#429) (38b3ad6)

New Contributors

  • @b0o made their first contribution in #429

Full Changelog: v0.7.1...v0.7.2

v0.7.1

02 Dec 19:05
v0.7.1
6e9fb62
Compare
Choose a tag to compare

Small bug fix for v0.7.0 when downloading prebuilt binaries on curl < 8.0

Bug Fixes

Full Changelog: v0.7.0...v0.7.1