Skip to content

Releases: SidOfc/carbon.nvim

v0.8.7

22 May 18:58
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.8.6...v0.8.7

v0.8.6

22 May 12:01
Compare
Choose a tag to compare

What's Changed

  • BREAKING: use vim.api.nvim_set_hl instead of homebrewing highlight commands via vim.cmd in util.highlight by @SidOfc in #29
  • BREAKING: remove util.defer and util.cancel by @SidOfc in #30
  • Fix: documentation inconsistencies by @SidOfc in #30

Full Changelog: v0.8.5...v0.8.6

v0.8.5

21 May 17:01
82de473
Compare
Choose a tag to compare

What's Changed

  • BREAKING: remove buffer.cancel_synchronization() by @SidOfc in #27
  • Improvement: replace vim.fn.readdir with util.scandir implementation by @SidOfc in #26
  • Fix: broken highlight reset on delete cancel due to regression in #25 by @SidOfc in #28

Description

Fixes a regression which broke clearing of delete highlighting on cancel.
Also removed a redundant method and implemented a utility method alternative
which uses vim.loop.fs_scan* instead of vim.fn.readdir.

Full Changelog: v0.8.4...v0.8.5

v0.8.4

21 May 14:48
Compare
Choose a tag to compare

What's Changed

  • Fix: util.defer now properly caches and closes timers by @SidOfc in #24
  • Fix: remove artifacts describing <bufnr> is set to the Carbon buffer handle by @SidOfc in #25

Description

Fixes a critical issue where timers were never cleared.

Full Changelog: v0.8.3...v0.8.4

v0.8.3

21 May 13:54
Compare
Choose a tag to compare

What's Changed

  • BREAKING: refactor buffer.create by @SidOfc in #23
  • BREAKING: make buffer.process_insert_move an inaccessible local function
  • BREAKING: make buffer.create_confirm an inaccessible local function
  • BREAKING: make buffer.create_cancel an inaccessible local function
  • BREAKING: make buffer.create_reset an inaccessible local function
  • BREAKING: make buffer.set_lines no longer accepts {strict} as an argument (:h carbon-buffer-set-lines)
  • Add: util.unmap (:h carbon-util-unmap)
  • Add: util.clear_autocmd (:h carbon-util-clear-autocmd)
  • Add: util.last_index_of (:h carbon-util-last-index-of)

Description

The main idea behind this refactor was to completely eliminate the need to use a
module-level local table variable (data) to store create-mode state variables.
This has now been properly encapsulated in a local context which is only accessible
to relevant functions.

Additionally, the related buffer.create_* methods have been replaced by local
functions since they no longer rely on module-level locals but rather receive a
ctx object which now carries the create-mode state variables.

Finally, in Carbon buffers, <cr> and <esc> mappings and the CursorMovedI
autocmd are now only bound while create-mode is active and automatically unbound
when cancelling / confirming creation.

Full Changelog: v0.8.2...v0.8.3

v0.8.2

19 May 19:13
Compare
Choose a tag to compare

What's Changed

  • Refactor: prefer lua over vim fn by @SidOfc in #22

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

v0.8.1

17 May 16:40
Compare
Choose a tag to compare

What's Changed

  • Fix: Issue which prevented previous root directories from staying open on up navigation by @SidOfc in #21

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

v0.8.0

17 May 00:22
Compare
Choose a tag to compare

What's Changed

  • BREAKING: refactor and rename util.confirm_cation to util.confirm by @SidOfc in #20

Full Changelog: v0.7.0...v0.8.0

v0.7.0

15 May 01:25
Compare
Choose a tag to compare

What's Changed

  • BREAKING: Drop support for Neovim versions below 0.7 by @SidOfc in #19
  • BREAKING: util.autocmd uses nvim_create_autocmd (>= 0.7.0) internally by @SidOfc in b4b57f7
  • BREAKING: util.command uses nvim_create_user_command (>= 0.7.0) internally by @SidOfc in e25a2d6
  • BREAKING: util.map uses builtin options.callback from nvim_*_keymap (>= 0.7.0) internally by @SidOfc in e25a2d6
  • BREAKING: Removed util.indexed_callback by @SidOfc in 54568a4
  • Change: Removed <esc> from settings.actions.quit default by @SidOfc in 8894cba
  • Fix: Typo in documentation by @SidOfc in 2f0eaf7

Full Changelog: v0.6.1...v0.7.0

v0.6.1

08 May 00:39
Compare
Choose a tag to compare

What's Changed

  • Feature: sync pwd by @SidOfc in #18
  • Add: new setting sync_pwd (default: false)

Full Changelog: v0.6.0...v0.6.1