gitsigns.lua 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. require("gitsigns").setup({
  2. signs = {
  3. add = { text = '│' },
  4. change = { text = '│' },
  5. delete = { text = '_' },
  6. topdelete = { text = '‾' },
  7. changedelete = { text = '~' },
  8. untracked = { text = '┆' },
  9. },
  10. signcolumn = true, -- Toggle with `:Gitsigns toggle_signs`
  11. numhl = false, -- Toggle with `:Gitsigns toggle_numhl`
  12. linehl = false, -- Toggle with `:Gitsigns toggle_linehl`
  13. word_diff = false, -- Toggle with `:Gitsigns toggle_word_diff`
  14. watch_gitdir = {
  15. interval = 1000,
  16. follow_files = true
  17. },
  18. attach_to_untracked = true,
  19. current_line_blame = false, -- Toggle with `:Gitsigns toggle_current_line_blame`
  20. current_line_blame_opts = {
  21. virt_text = true,
  22. virt_text_pos = 'eol', -- 'eol' | 'overlay' | 'right_align'
  23. delay = 1000,
  24. ignore_whitespace = false,
  25. },
  26. current_line_blame_formatter = '<author>, <author_time:%Y-%m-%d> - <summary>',
  27. sign_priority = 6,
  28. update_debounce = 100,
  29. status_formatter = nil, -- Use default
  30. max_file_length = 40000, -- Disable if file is longer than this (in lines)
  31. preview_config = {
  32. -- Options passed to nvim_open_win
  33. border = 'single',
  34. style = 'minimal',
  35. relative = 'cursor',
  36. row = 0,
  37. col = 1
  38. },
  39. yadm = {
  40. enable = false
  41. }
  42. })