Skip to content

Releases: lewis6991/gitsigns.nvim

v0.4

19 Jan 18:03

Choose a tag to compare

Highlights

  • Bug fixes of all shapes and sizes
  • True partial hunk operations via visual selection.
    • If you have a very large hunk (e.g. you add several functions), you can now use visual mode to select exactly which lines you want to stage for commit.
  • Added config.show_deleted, and toggle_deleted()
    • Uses virtual lines (via extmarks) to expand hunks inline in the buffer.
  • Added config.trouble
    • If enabled (by default) and trouble.nvim is installed, then setqflist() and setloclist() will open Trouble instead of the builtin (and slow) quickfix/location list.
  • Added config.current_line_blame_opts.ignore_whitespace

Notice

This will be the last release with explicit support for Neovim v0.5.

Contributers

@lewis6991
@mjlbach
@cryptomilk
@kuznetsss
@Sh3Rm4n
@jose-elias-alvarez
@jwong101
@mroavi

v0.3

27 Sep 12:02

Choose a tag to compare

Highlights

  • Many bug fixes
  • Added Rockspec and Luarock
  • Use vim.diff (No more FFI on Neovim 0.6!) (see neovim/neovim#14536)
  • Added get_hunks()
  • Added toggle_word_diff()
  • Added config.base
  • Added vim.g.gitsigns_head
  • Added setqflist() and setloclist():
    Populate the quickfix/location list with hunks with the option to add hunks from all changed files (not just open buffers).
    See :help gitsigns.setqflist() for more details.
  • Improvements to next_hunk()/prev_hunk()
    • Open fold when navigating to hunks, respect 'foldopen'
    • Show warning when there are no hunks.
  • Improvements to preview_hunk()
    • Add title
    • Keep preview open when navigating hunks with ]c, [c.
    • Allow . to work when preview is open, e.g. when staging hunks.
    • Allow preview focus with <C-w>w
  • Improvements to blame_line()
    • Show hunk of blame in preview
  • Optimizations:
    • Don't re-apply signs if hunk heads don't change
    • Disable during vimgrep
  • Add root dir and git dir to b:gitsigns_status_dict
  • Better support for DOS files
  • Deprecated fields:
    • watch_index: moved to watch_gitdir.
    • current_line_blame_delay: moved to current_line_blame_opts.delay.
    • current_line_blame_position: moved to current_line_blame_opts.virt_text_pos
    • diff_algorithm: moved to diff_opts.algorithm
    • use_internal_diff: moved to diff_opts.internal
    • use_decoration_api: removed

Contributors

@lewis6991
@dialetic
@saecki
@teto
@figsoda
@xanderio
@echasnovski
@laantorchaweb
@mroavi
@snezhniylis
@Iron-E

v0.2

06 Jul 12:44

Choose a tag to compare

Highlights

  • Add relative date to current_line_blame
  • Show status message when navigating hunks
  • Live word diff to buffer and hunk preview
  • Follow files when they move in the index
  • Stage/reset all hunks in selected range.
  • Added configurable timeout for current_line_blame
  • Configurable blame virtual text position
  • Added config.on_attach()
  • Added get_actions()
  • Added diffthis()
  • Migrate to plenary async2 (thanks @oberblastmeister)
  • Rework how derived highlights are applied

Contributors

@lewis6991 39 commits
@zapling 4 commits
@andersevenrud : 3 commits
@sindrets : 1 commit

v0.1

27 May 13:14

Choose a tag to compare

v0.1