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