From 3c7942494075ffe0d5c713d8aea067bd8a390a2f Mon Sep 17 00:00:00 2001 From: servostar Date: Sun, 3 Mar 2024 21:02:51 +0100 Subject: [PATCH] git improvements --- lua/plugins/gitsigns.lua | 3 ++- lua/plugins/lualine.lua | 2 +- lua/plugins/neotree.lua | 8 +++++--- lua/plugins/statuscol.lua | 2 +- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/lua/plugins/gitsigns.lua b/lua/plugins/gitsigns.lua index 7e7a977..bbf8fdc 100644 --- a/lua/plugins/gitsigns.lua +++ b/lua/plugins/gitsigns.lua @@ -15,7 +15,8 @@ return { signcolumn = true, preview_config = { border = 'rounded' - } + }, + } end } diff --git a/lua/plugins/lualine.lua b/lua/plugins/lualine.lua index 72671a8..73002e3 100644 --- a/lua/plugins/lualine.lua +++ b/lua/plugins/lualine.lua @@ -44,7 +44,7 @@ return { lualine_c = { { 'branch', - icon = '󰊤 ' + icon = '󰊤' }, { 'diff', diff --git a/lua/plugins/neotree.lua b/lua/plugins/neotree.lua index c111f0c..ae23b45 100644 --- a/lua/plugins/neotree.lua +++ b/lua/plugins/neotree.lua @@ -14,12 +14,14 @@ return { sources = { "filesystem", "buffers", + "git_status", "document_symbols" }, source_selector = { winbar = true, statusline = false }, + close_if_last_window = true, popup_border_style = options.ui.border, default_component_configs = { container = { @@ -41,9 +43,9 @@ return { git_status = { symbols = { -- Change type - added = "A", -- 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 - deleted = "D",-- this can only be used in the git_status source + added = "", -- 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 = "-",-- this can only be used in the git_status source renamed = "R",-- this can only be used in the git_status source -- Status type untracked = "U", diff --git a/lua/plugins/statuscol.lua b/lua/plugins/statuscol.lua index a91a025..7bd2261 100644 --- a/lua/plugins/statuscol.lua +++ b/lua/plugins/statuscol.lua @@ -15,7 +15,7 @@ return { { sign = { name = { "Diagnostic" }, - colwidth = 2, + colwidth = 1, maxwidth = 1, condition = { true } },