This repository has been archived on 2024-03-04. You can view files and clone it, but cannot push or open issues or pull requests.
linux/.config/nvim/lua/plugin/Gitsigns.lua

44 lines
1,021 B
Lua
Raw Normal View History

2024-02-06 15:25:18 +03:00
require("gitsigns").setup {
2023-12-05 22:06:39 +03:00
signs = {
2024-02-06 15:25:18 +03:00
add = { text = "" },
change = { text = "" },
changedelete = { text = "~" },
delete = { text = "_" },
topdelete = { text = "" },
untracked = { text = "" },
2023-12-05 22:06:39 +03:00
},
2024-02-06 15:25:18 +03:00
linehl = false,
numhl = true,
signcolumn = false,
word_diff = false,
2023-12-05 22:06:39 +03:00
watch_gitdir = {
2024-02-06 15:28:04 +03:00
follow_files = true,
2023-12-05 22:06:39 +03:00
},
attach_to_untracked = true,
2024-02-06 15:25:18 +03:00
current_line_blame = false,
2023-12-05 22:06:39 +03:00
current_line_blame_opts = {
2024-02-06 15:25:18 +03:00
delay = 1000,
2023-12-05 22:06:39 +03:00
ignore_whitespace = false,
2024-02-06 15:25:18 +03:00
virt_text = true,
virt_text_pos = "eol",
2023-12-05 22:06:39 +03:00
},
2024-02-06 15:25:18 +03:00
current_line_blame_formatter = "<author>, <author_time:%Y-%m-%d> - <summary>",
max_file_length = 40000,
sign_priority = 6,
status_formatter = nil,
update_debounce = 100,
2023-12-05 22:06:39 +03:00
preview_config = {
2024-02-06 15:25:18 +03:00
border = "single",
2024-02-06 15:28:04 +03:00
col = 1,
2024-02-06 15:25:18 +03:00
relative = "cursor",
row = 0,
style = "minimal",
2023-12-05 22:06:39 +03:00
},
yadm = {
2024-02-06 15:28:04 +03:00
enable = false,
2023-12-05 22:06:39 +03:00
},
2023-08-08 16:24:15 +03:00
}
2024-02-06 15:25:18 +03:00
-- Set custom color.
vim.cmd("highlight gitsignscurrentlineblame guibg=#00000000 guifg=#aaaaaa")