Skip to content

Deprecated Functions in Gitsigns #1319

Closed
@ioneyed

Description

@ioneyed

Updating to the latest gitsigns there are some functions that were deprecated.

Specifically this commit - lewis6991/gitsigns.nvim@8b74e56

  • Deprecated config.show_deleted and toggle_deleted()
  • Use preview_hunk_inline()
  • Deprecated undo_stage_hunk()
  • Use stage_hunk() on staged lines
  • Updated keymap suggestion in README.md
  • Removed hidden option config._inline2

Changes to the initial config may be in order

Deprecated Functions

map('n', '<leader>hu', gitsigns.undo_stage_hunk, { desc = 'git [u]ndo stage hunk' })

Suggested by lsp is to replace this with gitsigns.stage_hunk() on staged signs however the gitsigns plugin just removed this mapping entirely.

map('n', '<leader>tD', gitsigns.toggle_deleted, { desc = '[T]oggle git show [D]eleted' })

Suggested by lsp is to reeplace this with gitsigns.preview_hunk_inline()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions