mirror of
https://github.com/harivansh-afk/nvim.git
synced 2026-04-15 07:04:47 +00:00
update line highlighting for git
This commit is contained in:
parent
b88e672daa
commit
142d73beb8
1 changed files with 28 additions and 6 deletions
|
|
@ -4,12 +4,34 @@ return {
|
|||
config = function()
|
||||
require("gitsigns").setup({
|
||||
signs = {
|
||||
add = { text = "│" },
|
||||
change = { text = "│" },
|
||||
delete = { text = "_" },
|
||||
topdelete = { text = "‾" },
|
||||
changedelete = { text = "~" },
|
||||
add = { text = "▌" },
|
||||
change = { text = "▌" },
|
||||
delete = { text = "▁" },
|
||||
topdelete = { text = "▔" },
|
||||
changedelete = { text = "▌" },
|
||||
untracked = { text = "┆" },
|
||||
},
|
||||
-- Show colors on line numbers
|
||||
numhl = true,
|
||||
-- Optional: adds subtle highlighting to the entire line (set to true if you want)
|
||||
linehl = false,
|
||||
-- Optional: highlight the word that changed
|
||||
word_diff = false,
|
||||
-- Make the signs stand out a bit more with custom highlights
|
||||
signcolumn = true,
|
||||
-- Show git blame at end of current line (optional, can be distracting)
|
||||
current_line_blame = false,
|
||||
current_line_blame_opts = {
|
||||
virt_text = true,
|
||||
virt_text_pos = 'eol',
|
||||
delay = 1000,
|
||||
ignore_whitespace = false,
|
||||
},
|
||||
-- Preview window configuration
|
||||
preview_config = {
|
||||
border = 'rounded',
|
||||
style = 'minimal',
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue