dotfiles

*nix config files
git clone git://git.pyratebeard.net/dotfiles.git
Log | Files | Refs | README

gitsigns.lua (892B)


      1 return {
      2 	"lewis6991/gitsigns.nvim",
      3 	config = function()
      4 		local gitsigns = require("gitsigns")
      5 		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,  -- Toggle with `:Gitsigns toggle_signs`
     15 			linehl         = false, -- Toggle with `:Gitsigns toggle_linehl`
     16 			numhl          = false, -- Toggle with `:Gitsigns toggle_nunhl`
     17 			word_diff      = false, -- Toggle with `:Gitsigns toggle_word_diff`
     18 			sign_priority  = 9,
     19 			watch_gitdir   = {
     20 				interval     = 1000,
     21 			},
     22 			attach_to_untracked = false,
     23 		})
     24 --		if pcall(require, "scrollbar") then
     25 --			require("scrollbar.handlers.gitsigns").setup()
     26 --		end
     27 	end,
     28 	event = { "BufReadPre", "BufNewFile" },
     29 }