gitsigns.lua 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. local M = {}
  2. M.config = function()
  3. lvim.builtin.gitsigns = {
  4. active = true,
  5. opts = {
  6. signs = {
  7. add = {
  8. hl = "GitSignsAdd",
  9. text = "▎",
  10. numhl = "GitSignsAddNr",
  11. linehl = "GitSignsAddLn",
  12. },
  13. change = {
  14. hl = "GitSignsChange",
  15. text = "▎",
  16. numhl = "GitSignsChangeNr",
  17. linehl = "GitSignsChangeLn",
  18. },
  19. delete = {
  20. hl = "GitSignsDelete",
  21. text = "契",
  22. numhl = "GitSignsDeleteNr",
  23. linehl = "GitSignsDeleteLn",
  24. },
  25. topdelete = {
  26. hl = "GitSignsDelete",
  27. text = "契",
  28. numhl = "GitSignsDeleteNr",
  29. linehl = "GitSignsDeleteLn",
  30. },
  31. changedelete = {
  32. hl = "GitSignsChange",
  33. text = "▎",
  34. numhl = "GitSignsChangeNr",
  35. linehl = "GitSignsChangeLn",
  36. },
  37. },
  38. numhl = false,
  39. linehl = false,
  40. keymaps = {
  41. -- Default keymap options
  42. noremap = true,
  43. buffer = true,
  44. },
  45. watch_index = { interval = 1000 },
  46. sign_priority = 6,
  47. update_debounce = 200,
  48. status_formatter = nil, -- Use default
  49. },
  50. }
  51. end
  52. M.setup = function()
  53. require("gitsigns").setup(lvim.builtin.gitsigns.opts)
  54. end
  55. return M