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.

41 lines
1.6 KiB

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