You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.2 KiB

  1. return {
  2. "lewis6991/gitsigns.nvim",
  3. event = { "BufReadPre", "BufNewFile" },
  4. config = function()
  5. require("gitsigns").setup({
  6. signs = {
  7. add = { text = "" },
  8. change = { text = "" },
  9. delete = { text = "_" },
  10. topdelete = { text = "" },
  11. changedelete = { text = "~" },
  12. untracked = { text = "" },
  13. },
  14. signcolumn = true,
  15. numhl = false,
  16. linehl = false,
  17. word_diff = false,
  18. watch_gitdir = {
  19. follow_files = true,
  20. },
  21. auto_attach = true,
  22. attach_to_untracked = false,
  23. current_line_blame = true, -- Toggle with `:Gitsigns toggle_current_line_blame`
  24. current_line_blame_opts = {
  25. virt_text = true,
  26. virt_text_pos = "eol",
  27. delay = 0,
  28. ignore_whitespace = false,
  29. virt_text_priority = 100,
  30. },
  31. current_line_blame_formatter = "<author>, <author_time:%R> - <summary>",
  32. sign_priority = 6,
  33. update_debounce = 100,
  34. status_formatter = nil, -- Use default
  35. max_file_length = 40000, -- Disable if file is longer than this (in lines)
  36. preview_config = {
  37. -- Options passed to nvim_open_win
  38. border = "single",
  39. style = "minimal",
  40. relative = "cursor",
  41. row = 0,
  42. col = 1,
  43. },
  44. })
  45. end,
  46. }