Skip to content

Commit

Permalink
use vim-signify instead of gitsigns
Browse files Browse the repository at this point in the history
  • Loading branch information
jrodal98 committed Feb 28, 2022
1 parent 3810d95 commit 223e617
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lua/custom/chadrc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ M.plugins = {
dashboard = true, -- NeoVim 'home screen' on open
better_escape = true, -- map to <ESC> with no lag
feline = true, -- statusline
gitsigns = true, -- gitsigns in statusline
gitsigns = false, -- gitsigns in statusline
lspsignature = true, -- lsp enhancements
vim_matchup = true, -- % operator enhancements
snippets = true,
Expand Down
9 changes: 9 additions & 0 deletions lua/custom/plugins/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,13 @@ return {
require "custom.plugins.dial"
end,
},
-- uses the sign column to indicate added, modified and removed lines
-- in a file that is managed by a version control system
{
"mhinz/vim-signify",
event = "BufRead",
config = function()
require "custom.plugins.signify"
end,
},
}
14 changes: 14 additions & 0 deletions lua/custom/plugins/signify.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
local map = require("core.utils").map



-- default mappings

-- ]c Jump to the next hunk.
-- [c Jump to the previous hunk.
--
-- ]C Jump to the last hunk.
-- [C Jump to the first hunk.

map("n", "<leader>hd", ":SignifyHunkDiff <CR>")
map("n", "<leader>hu", ":SignifyHunkUndo <CR>")

0 comments on commit 223e617

Please sign in to comment.