fix gitsigns icons
This commit is contained in:
parent
1364b6680c
commit
fc700acdf9
2 changed files with 9 additions and 28 deletions
|
@ -40,7 +40,7 @@ return {
|
||||||
LineModified = "",
|
LineModified = "",
|
||||||
LineRemoved = "",
|
LineRemoved = "",
|
||||||
FileDeleted = "",
|
FileDeleted = "",
|
||||||
FileIgnored = "◌",
|
FileIgnored = "",
|
||||||
FileRenamed = "",
|
FileRenamed = "",
|
||||||
FileStaged = "S",
|
FileStaged = "S",
|
||||||
FileUnmerged = "",
|
FileUnmerged = "",
|
||||||
|
|
|
@ -16,35 +16,16 @@ M.keys = {
|
||||||
|
|
||||||
M.ft = { "gitcommit" }
|
M.ft = { "gitcommit" }
|
||||||
|
|
||||||
|
local icons = require('config.icons')
|
||||||
|
|
||||||
local opts = {
|
local opts = {
|
||||||
signs = {
|
signs = {
|
||||||
add = { hl = "GitSignsAdd", text = "▎", numhl = "GitSignsAddNr", linehl = "GitSignsAddLn" },
|
add = { text = icons.git.LineAdded },
|
||||||
change = { hl = "GitSignsChange", text = "▎", numhl = "GitSignsChangeNr", linehl = "GitSignsChangeLn" },
|
change = { text = icons.git.LineModified },
|
||||||
delete = { hl = "GitSignsDelete", text = "契", numhl = "GitSignsDeleteNr", linehl = "GitSignsDeleteLn" },
|
delete = { text = icons.git.LineRemoved },
|
||||||
topdelete = { hl = "GitSignsDelete", text = "契", numhl = "GitSignsDeleteNr", linehl = "GitSignsDeleteLn" },
|
topdelete = { text = icons.git.LineRemoved },
|
||||||
changedelete = { hl = "GitSignsChange", text = "▎", numhl = "GitSignsChangeNr", linehl = "GitSignsChangeLn" },
|
changedelete = { text = icons.git.FileRenamed },
|
||||||
},
|
untracked = { text = icons.git.FileIgnored },
|
||||||
signcolumn = true, -- Toggle with `:Gitsigns toggle_signs`
|
|
||||||
watch_gitdir = {
|
|
||||||
interval = 1000,
|
|
||||||
follow_files = true,
|
|
||||||
},
|
|
||||||
attach_to_untracked = true,
|
|
||||||
current_line_blame_opts = {
|
|
||||||
virt_text = true,
|
|
||||||
virt_text_pos = "eol", -- 'eol' | 'overlay' | 'right_align'
|
|
||||||
delay = 1000,
|
|
||||||
},
|
|
||||||
sign_priority = 6,
|
|
||||||
update_debounce = 100,
|
|
||||||
status_formatter = nil, -- Use default
|
|
||||||
preview_config = {
|
|
||||||
-- Options passed to nvim_open_win
|
|
||||||
border = "single",
|
|
||||||
style = "minimal",
|
|
||||||
relative = "cursor",
|
|
||||||
row = 0,
|
|
||||||
col = 1,
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue