git improvements

This commit is contained in:
Sven Vogel 2024-03-03 21:02:51 +01:00
parent 692cbbd6ba
commit 3c79424940
4 changed files with 9 additions and 6 deletions

View File

@ -15,7 +15,8 @@ return {
signcolumn = true, signcolumn = true,
preview_config = { preview_config = {
border = 'rounded' border = 'rounded'
} },
} }
end end
} }

View File

@ -14,12 +14,14 @@ return {
sources = { sources = {
"filesystem", "filesystem",
"buffers", "buffers",
"git_status",
"document_symbols" "document_symbols"
}, },
source_selector = { source_selector = {
winbar = true, winbar = true,
statusline = false statusline = false
}, },
close_if_last_window = true,
popup_border_style = options.ui.border, popup_border_style = options.ui.border,
default_component_configs = { default_component_configs = {
container = { container = {
@ -41,9 +43,9 @@ return {
git_status = { git_status = {
symbols = { symbols = {
-- Change type -- Change type
added = "A", -- or "✚", but this is redundant info if you use git_status_colors on the name added = "", -- or "✚", but this is redundant info if you use git_status_colors on the name
modified = "M", -- or "", but this is redundant info if you use git_status_colors on the name modified = "", -- or "", but this is redundant info if you use git_status_colors on the name
deleted = "D",-- this can only be used in the git_status source deleted = "-",-- this can only be used in the git_status source
renamed = "R",-- this can only be used in the git_status source renamed = "R",-- this can only be used in the git_status source
-- Status type -- Status type
untracked = "U", untracked = "U",

View File

@ -15,7 +15,7 @@ return {
{ {
sign = { sign = {
name = { "Diagnostic" }, name = { "Diagnostic" },
colwidth = 2, colwidth = 1,
maxwidth = 1, maxwidth = 1,
condition = { true } condition = { true }
}, },