Releases: Saghen/blink.cmp
v0.10.0
Important
The luasnip
source has been removed in favor of a snippets.preset = 'luasnip'
option with the snippets
source
completion.list.selection
has been replaced with completion.list.selection.preselect/auto_insert
BREAKING CHANGES
- mini.snippets and snippets presets (#877)
- support
preselect
withauto_insert
, set as default
Features
- add
get_selected_item
public function (9e1e7e6) - mini.snippets and snippets presets (#877) (854ab87)
- set default capabilities on 0.11 (#897) (af1febb)
- support
preselect
withauto_insert
, set as default (8126d0e), closes #668
Bug Fixes
get_char_at_cursor
attempting to get char on empty line (7d6bf9a), closes #926within_query_bounds
including 1 position after bounds (36ba8eb), closes #890 #875- assert vim.lsp.config fn exists before calling (#927) (47efef8)
- buildVimPlugin (#933) (3f5dcbc)
- clear context on ignored cursor moved when not on keyword (0f8de3a), closes #937
- ignore cursor moved when cursor equal before vs after (17eea33)
- signature: use
char_under_cursor
inon_char_added
handler (#935) (275d407), closes #909
New Contributors
- @antoineco made their first contribution in #927
- @ohogb made their first contribution in #935
Full Changelog: v0.9.3...v0.10.0
v0.9.3
Features
- add plaintex, tex and context brackets (9ffdb7b)
- path: replace
/
in front of cursor on directory (d2b411c)
Bug Fixes
- add .repro to gitignore (0d1e3c3)
- cmdline completion new text not including prefix (bc480aa), closes #883
- ignore buffer local treesitter option (d704244), closes #913
- ignore non-key char in cmdline completion (cc0e632), closes #893
- nix: use native gcc on macos (3ab6832), closes #652
- nix: use nix gcc and provide libiconv (#916) (5d2d601)
Full Changelog: v0.9.2...v0.9.3
v0.9.2
Bug Fixes
Full Changelog: v0.9.1...v0.9.2
v0.9.1
Features
- ignore global min_keyword_length for manual trigger (56f5d31), closes #643
- nix: add formatter (#867) (a0274b1), closes #736
- normalize search paths (8a64275), closes #835
- smarter edit/fuzzy range guessing (768bcc0), closes #46
- sort cmdline items starting with special characters last (ae3bf0d), closes #818
- support custom/customlist cmdline completions directly (7e7deaa), closes #849
Bug Fixes
- column alignment off by 1 when bounds length == 0 (0d162bd)
- get full unicode char at cursor position (e831cab), closes #864
- hyphen not being considered a keyword (8ca8ca4), closes #866
- ignore non custom/customlist completion types (f7857fc), closes #849
- keyword range not being respected for fuzzy matching (4cc4e37)
- path provider not respecting trailing_slash=false (#862) (0ff2ed5)
- set undolevels to force undo point (4c63b4e), closes #852
- use tmp file for downloading to prevent crash on mac on update (84e065b), closes #68
- window direction sorting on Windows (#846) (00ad008)
Performance Improvements
New Contributors
- @StefanBRas made their first contribution in #856
Full Changelog: v0.9.0...v0.9.1
v0.9.0
BREAKING CHANGES
- rename
BlinkCmpCompletionMenu*
autocmds toBlinkCmpMenu*
- set default documentation max_width to 80
- rename
align_to_component
toalign_to
, addcursor
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
toalign_to
, addcursor
option (9387c75), closes #344 - rename
BlinkCmpCompletionMenu*
autocmds toBlinkCmpMenu*
(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
- @tris203 made their first contribution in #760
- @konradmalik made their first contribution in #735
- @moyiz made their first contribution in #771
- @jpwallace22 made their first contribution in #777
- @Quitlox made their first contribution in #799
- @jessevdp made their first contribution in #796
- @ruslanSorokin made their first contribution in #779
- @hfn92 made their first contribution in #774
- @shellRaining made their first contribution in #829
- @Kaiser-Yang made their first contribution in #841
Full Changelog: v0.8.2...v0.9.0
v0.8.2
Highlights
- You may now set
completion.list.selection
andcompletion.menu.auto_show
via a function to get different behavior for i.e. cmdline: https://cmp.saghen.dev/recipes.html#change-selection-type-per-mode
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
- @guill made their first contribution in #697
- @polirritmico made their first contribution in #708
- @oysandvik94 made their first contribution in #729
- @marcelarie made their first contribution in #732
- @leath-dub made their first contribution in #726
Full Changelog: v0.8.1...v0.8.2
v0.8.1
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
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
{
toshow_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...
v0.7.6
Bug Fixes
Full Changelog: v0.7.5...v0.7.6
v0.7.5
Note
blocked_filetypes
has been replaced with a more generic enabled
function. Check the default configuration for how to block filetypes with it
Features
Bug Fixes
Full Changelog: v0.7.4...v0.7.5