github Saghen/blink.cmp v0.12.0

latest releases: v1.6.0, v1.5.1, v1.5.0...
6 months ago

Highlights

  • Dot repeat (.) has been added! Special thanks to @mikavilpas and @xzbdmw
  • Terminal completion (term) has been added but there's no sources taking advantage of it at the moment. Contributions welcome! Thanks @wurli!
  • Mode specific configuration (cmdline and term) have been moved to their own top-level tables. The most notable moves are:
    • keymap.cmdline -> cmdline.keymap
    • sources.cmdline -> cmdline.sources
  • During scoring, items with exact matches receive a bonus of 4, however if you always want exact matches at the top, you may use the new exact sorter: fuzzy.sorts = { 'exact', 'score', 'sort_text' }
  • LSP commands are now supported
  • Vim documentation has been added via panvimdoc, see limitations

BREAKING CHANGES

  • mode-specific config (#1203)
  • explicit snippets.score_offset option
  • add exact match comparator (#1099)
  • default BlinkCmpKind hl to PmenuKind

Features

  • add accept_and_enter and select_accept_and_enter command (#957) (507d0d7)
  • add exact match comparator (#1099) (d6169f0), closes #1085
  • add omnifunc completion source (9c1286f)
  • add asynchronous cc -dumpmachine for libc detection (4ac2c27)
  • add client_name to completion item from lsp (6d1d503), closes #1162
  • add hints for mode-specific config (035e1ba)
  • add lsp command cancellation (62d6ffe)
  • add workflow for vimdocs via panvimdoc (a290e35)
  • apply lsp commands (#1130) (2de57ce)
  • automatic runtime linux libc detection (#1144) (beffa19), closes #160
  • bump deps and frizbee with bitmask prefiltering (b078c6e), closes #1105
  • default BlinkCmpKind hl to PmenuKind (7ae6d9d)
  • disable path source when current path segment contains space (0abe117), closes #1126
  • efficient LSP item concatenation (f8fd448)
  • explicit snippets.score_offset option (cf57b2a)
  • format lua files using stylua (#1179) (567980d)
  • ignore range in cmdline completions (f0aeac2), closes #1155 #1092
  • include _ at beginning of buffer words (846a044), closes #1091
  • mark command and data as resolvable (ebb2e22)
  • mode-specific config (#1203) (93215d8)
  • omni: infer completion kind where possible (ce35af0)
  • omni: use complete-functions info as documentation when available (59c3e21)
  • only load providers enabled for context (aaad7db), closes #1070
  • simplify dot repeat hack (9e95af4), closes #1206
  • support custom draw function for documentation (b88ba59), closes #1113
  • support dot-repeat via vim.fn.complete (#1033) (4673d79)
  • support multi-line dot repeat (a776a09)
  • terminal-mode completions (#665) (7b4e546)

Bug Fixes

  • add elm to blocked filetypes for auto brackets (844b97a), closes #1226
  • avoid exiting completion mode when expanding snippets (0bd150a)
  • buffer: add back missing brackets in regex (9f32ef5), closes #964
  • cancellation not bubbling to sources (b2485c7), closes #1116 #1115
  • close completion window only if open (779afa4), closes #1206
  • cmdline incorrect edit range (d832ace), closes #1117 #1161
  • don't show signature help when trigger is disabled (#1180) (3b770b0)
  • dot repeat no autocmds in win, buf opts, close compl window in insert mode (6431adb)
  • dot repeat sending to background (1e7c433), closes #1206
  • ensure TextChangedI runs last with mini.snippets (#1035) (7f3d982)
  • execute requiring cancellation function (d683d8f)
  • luadoc: KeymapCommand alias broken (#1153) (03db0dd)
  • luasnip duplicate items (f0f34c3), closes #1081
  • move cursor correctly with multi-line text edits (ac2ecd6), closes #1123
  • outdated Cargo.lock (cdd52ac), closes #1150
  • pass resolved item to execute (f22ca35), closes #1219
  • path completion in Windows using backward slash (#1152) (575784f)
  • revert scheduling feedkeys to close completion menu (2b7fbe9)
  • schedule closing completion menu after dot repeat (a17a4be)
  • schedule just feedkeys to close completion menu (363f351)
  • support additional text edits when calculating cursor position (cc34be8), closes #223 #975
  • use nearest char index for keyword range (e3330cd), closes #1131
  • use temporary floating window for dot repeat (754a684)

New Contributors

Full Changelog: v0.11.0...v0.12.0

Don't miss a new blink.cmp release

NewReleases is sending notifications on new releases.