init.lua 1.2 KB

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