Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated Functions in Gitsigns #1319

Open
ioneyed opened this issue Jan 20, 2025 · 0 comments
Open

Deprecated Functions in Gitsigns #1319

ioneyed opened this issue Jan 20, 2025 · 0 comments

Comments

@ioneyed
Copy link

ioneyed commented Jan 20, 2025

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()

ErlanRG added a commit to ErlanRG/kickstart.nvim that referenced this issue Jan 21, 2025
- This commit change two functions that are marked as deprecated now:
`gitsigns.stage_hunk` and `gitsigns.toggle_deleted`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant