Skip to content

Releases: MunifTanjim/nui.nvim

v0.3.0

16 Feb 20:20
Compare
Choose a tag to compare

0.3.0 (2024-02-16)

Features

  • layout: method 'show' mounts if not already mounted (c1627d0)
  • popup: method 'show' mounts if not already mounted (ecd77d8)
  • split: method 'show' mounts if not already mounted (43f7605)
  • support decimal number in (0,1) range as size (35da9ca)
  • tree: allow node:expand with zero child (0f913a3)
  • utils: replace deprecated api to set option (401a7c6)

Bug Fixes

  • input: check mounted state in mount/unmount method (c0c8e34)
  • input: skip cursor position patch for hidden input (80445d0)
  • menu: defer execution of make_default_prepare_node (49182fa)
  • menu: set default zindex higher than popup (abb0662)
  • popup: make sure border buf is modifiable (aa1b4c1)
  • popup: support border:set_text before layout mount (c9b4de6)
  • popup: use popup winblend for border (257dccc)
  • split: for relative=editor always split from current window (af8ddf5)
  • split: manual doautocmd BufWinEnter (af7dfee)

v0.2.0

20 Jul 04:46
Compare
Choose a tag to compare

0.2.0 (2023-06-18)

Features

  • input: call on_close inside :unmount (60e91dd)
  • input: update types (c3c2957)
  • layout: support anchor for float layout (f284153)
  • layout: update types (62b3203)
  • line: update types (1a8d824)
  • menu: update types (0a97a88)
  • popup: add method border:set_style (9d98e9b)
  • popup: create border buffer on initialization (643e9af)
  • popup: support (text, hl_group)[] for border text (062e366)
  • popup: support anchor in :update_layout (52c9115)
  • popup: support nui.line for border text (1b8fa8b)
  • popup: update types (f6b6923)
  • split: update types (f4469cb)
  • support byte range for _.render_lines util (993d550)
  • table: add nui.table block (bfd3806)
  • table: support linenr_start for render method (457a5cf)
  • table: update types (64bdc57)
  • text: update types (9f7666d)
  • tree: always track linenr in :render (f008972)
  • tree: update types (d3cc976)
  • utils: support string line in _.render_lines (51764d2)
  • utils: update types (df321ba)

Bug Fixes

  • input: unmount race condition (e319f25)
  • layout: even more patch for neovim/neovim#18925 (de66444)
  • layout: more robust workaround for neovim/neovim#18925 (9230eb0)
  • popup: border empty char handling (bd2fefb)
  • popup: ensure valid border.bufnr on mount (6867305)
  • table: update types (d5a82aa)
  • tree: do not wipe linenr tracking in :set_nodes (da3b5eb)

Performance Improvements

  • tree: optimize hot paths (19de4d5)

v0.1.0

27 May 10:32
Compare
Choose a tag to compare

0.1.0 (2023-05-27)

⚠ BREAKING CHANGES

  • line: change parameter order for methods.
  • text: change parameter order for methods.

Features

  • accept multiple keys for keymap (4998347)
  • add internal utils._.calculate_gap_width (90d7285)
  • add util to clear namespace for buffer (6c63bf5)
  • bar: add lower-level core.add_highlight function (20385a6)
  • bar: add some lower-level core.add_* functions (5d1ca66)
  • bar: initial implementation (35758e9)
  • bar: remove module (0dc148c)
  • input: add component Input (7307c94)
  • input: move internal default_value and prompt prop (595a2ea)
  • input: support nui.text for options.prompt (c380563)
  • layout: add method layout:update (3f611a6)
  • layout: add some util for size and position (cc3b970)
  • layout: feature guard lua autocmd api usage (3dc6b89)
  • layout: initial implementation (716c3f9)
  • layout: introduce layout type (a5fd005)
  • layout: introduce split layout (042cceb)
  • layout: make window transparent (2d33512)
  • layout: re-use windows for unchanged split layout box (71ddaaf)
  • layout: support :show and :hide for float layout (f572782)
  • layout: support container component (5bc7376)
  • layout: support o.grow factor for layout.box (796dc82)
  • layout: support o.grow for layout.box (2c6bac9)
  • layout: throw for empty box at init (6e872b3)
  • layout: tweak component wire up (eed888e)
  • layout: use backported autocmd methods (4e21085)
  • layout: wire up float layout components (3aa617d)
  • line: accept initial nui.text objects (2f44cc9)
  • line: accept NuiText object as param for line:append() method (34fd4bf)
  • line: add method :width (80122e5)
  • line: add nui.line block (1333fd0)
  • line: make ns_id required, update method signature (5695bde)
  • line: support nui.line in method :append (401a69f)
  • make components extendable (c75976e)
  • menu: add component Menu (dca0630)
  • menu: expose .tree (d12a697)
  • menu: improve menu separator implementation (0e05425)
  • menu: move internal props (0373a94)
  • menu: pass self to on_change callback (4438c5e)
  • menu: rename method menu:init to menu:new (2825c3d)
  • menu: simplify automatic width calculation (54cbaf5)
  • menu: support arbritary props for Menu.item (77cefa6)
  • menu: support nui.line for Menu.item (51cbd0c)
  • menu: support nui.text as separator char (3029554)
  • menu: support nui.text for Menu.item (13e557d)
  • menu: support options.on_change (db06fed)
  • object: add helper functions (9531977)
  • object: initial implementation (194837f)
  • popup: add method .border:set_highlight (acb72b1)
  • popup: add method popup:set_layout(config) (006711f)
  • popup: add method popup:set_position(position, relative) (7ea1a6b)
  • popup: add method popup:set_size(size) (07b6e9a)
  • popup: add method popup:unmap (46bbf33)
  • popup: add method popup.border:set_text(...) (b82a5d3)
  • popup: add methods popup:hide() and popup:show() (b3c706d)
  • popup: add methods popup:on(...) and popup:off(...) (0eb57a2)
  • popup: add option 'focusable' (8339965)
  • popup: add option padding (596cd77)
  • popup: add options 'buf_options' and 'win_options' (163d99a)
  • popup: add options.ns_id (6f165aa)
  • popup: add type annotation for bufnr,winid,ns_id (c2d1f73)
  • popup: add type annotation for win_config (f8ccc5c)
  • popup: allow layout refresh when container size changes (ee8d315)
  • popup: change behavior of padding (9f29df4)
  • popup: clear namespace object on unmount (58e06b0)
  • popup: create buffer on initialization (6b1deda)
  • popup: default border.text hl to FloatTitle (4eaec2a)
  • popup: feature guard lua autocmd api usage (6028584)
  • popup: improve border highlight implementation ([2f58c40](https://github.com/MunifTanjim/nui.n...
Read more