Skip to content

Commit

Permalink
Add mapping for treesitter diff to make git verbose in vim work
Browse files Browse the repository at this point in the history
  • Loading branch information
sblask committed Dec 19, 2023
1 parent fc773a5 commit a1b14d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dotfiles_shared/.config/nvim.symlink/lua/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,8 @@ require("treesitter-context").setup({
},
mode = "topline",
})

-- supposedly this can be done with custom_captures under highlight in the
-- treesitter config setup, but I couldn't get it to work
vim.cmd([[highlight def link @text.diff.add DiffAdded]])
vim.cmd([[highlight def link @text.diff.delete DiffRemoved]])

0 comments on commit a1b14d4

Please sign in to comment.