Skip to content

v0.8.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 20 Dec 16:33
· 5 commits to main since this release
v0.8.0
ca05bb3

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), closes #523
  • cmdline events firing cursor moved when changed (97989c8), closes #520
  • cmdline including current arg prefix (49bff2b), closes #609
  • cmdline: not delete buf when hide scrollbar cause it seems not necessary (#591) (0046d0c)
  • completion auto_insert replace incorrect range (#621) (5926869), closes #460
  • completion: disable in prompt buffers (#574) (1097d4e)
  • consider functions as snippet commands (d065c87)
  • disable ghost text in command mode (ad17735), closes #524
  • don't block trigger characters in command mode (0a729ae), closes #541
  • don't create undo point when kind equals snippet (343e89d)
  • don't duplicate . when completing hidden files in path source (#557) (714e2b5)
  • don't show when moving on trigger character, hide on no items after trigger (7a04612), closes #545
  • duplicate snippets in luasnip when autosnippets are enabled (12ffc10)
  • fire cursor moved when jumping between tab stops in a snippet (1e4808e), closes #545
  • fuzzy: initialize db only once (7868d47)
  • ghost_text: correctly disable on cmdline (54d1a98)
  • ignore snippets that only contain text (284dd37), closes #624
  • ignore sort_text if either are nil (3ba583c), closes #595
  • include space for cmdline events (38b9c4f)
  • incorrect bounds when removing word under cursor in buffer sources (d682165), closes #560
  • keymap: incorrect merging strategy (f88bd66), closes #599
  • keymap: normalize mapping capitalization (#599) (596a7ab)
  • luasnip: add global_snippets with ft="all" (#546) (9f1fb75)
  • on_key for cmdline events (89479f3), closes #534
  • prefetch first item when selection == 'manual' | 'auto_insert' (a8222cf), closes #627
  • provider: add missing validations (#516) (1eda2b9)
  • provider: restore path completion source (#506) (b2d13ba), closes #465
  • re-enable scrollbar on menu (d48bb17), closes #519
  • remove vim.notify on snippet only containing text (59ef8a4)
  • respect opts.index when checking if cmp.accept can be run (ea12c51), closes #633
  • revert enabled logic or (cfd1b7f), closes #574 #577
  • run callback when LSP client returns nil (f9b72e3), closes #543
  • schedule get_bufnrs for buffer source (342c5ed)
  • signature help window documentation rendering (264aea4)
  • sort by sortText/label again (30705ab), closes #444
  • sources: set default item kind to Property (#505) (08ff824)
  • tailwind: color rendering (#601) (02528e8)
  • uncomment event emitter autocmd (e1cf25f)
  • use luasnip get_snippet_filetypes, remove global_snippets option (c0b5ae9), closes #603
  • use transform_items on resolve (85176f7), closes #614

New Contributors

Full Changelog: v0.7.6...v0.8.0