Add support for untracked files in Git signs
This commit is contained in:
@@ -70,7 +70,7 @@ local palette = {
|
||||
inkViolet = "#8992a7",
|
||||
inkRed = "#c4746e",
|
||||
inkAqua = "#8ea4a2",
|
||||
inkAsh = "#5C6068",
|
||||
inkAsh = "#5C6066",
|
||||
inkTeal = "#949fb5",
|
||||
inkYellow = "#c4b28a", --"#a99c8b",
|
||||
-- "#8a9aa3",
|
||||
@@ -132,7 +132,8 @@ function M.setup(opts)
|
||||
local theme = opts.theme or require("kanso")._CURRENT_THEME -- WARN: this fails if called before kanso.load()
|
||||
|
||||
if not theme then
|
||||
error("kanso.colors.setup(): Unable to infer `theme`. Either specify a theme or call this function after ':colorscheme kanso'")
|
||||
error(
|
||||
"kanso.colors.setup(): Unable to infer `theme`. Either specify a theme or call this function after ':colorscheme kanso'")
|
||||
end
|
||||
|
||||
-- Add to and/or override palette_colors
|
||||
@@ -142,7 +143,8 @@ function M.setup(opts)
|
||||
local theme_colors = require("kanso.themes")[theme](updated_palette_colors)
|
||||
|
||||
-- Add to and/or override theme_colors
|
||||
local theme_overrides = vim.tbl_deep_extend("force", override_colors.theme["all"] or {}, override_colors.theme[theme] or {} )
|
||||
local theme_overrides = vim.tbl_deep_extend("force", override_colors.theme["all"] or {},
|
||||
override_colors.theme[theme] or {})
|
||||
local updated_theme_colors = vim.tbl_deep_extend("force", theme_colors, theme_overrides)
|
||||
-- return palette_colors AND theme_colors
|
||||
|
||||
|
||||
@@ -25,6 +25,10 @@ function M.setup(colors, config)
|
||||
GitSignsAdd = { fg = theme.vcs.added, bg = theme.ui.none },
|
||||
GitSignsChange = { fg = theme.vcs.changed, bg = theme.ui.none },
|
||||
GitSignsDelete = { fg = theme.vcs.removed, bg = theme.ui.none },
|
||||
GitSignsChangedelete = { fg = theme.vcs.removed, bg = theme.ui.none },
|
||||
GitSignsTopdelete = { fg = theme.vcs.removed, bg = theme.ui.none },
|
||||
GitSignsUntracked = { fg = theme.vcs.untracked, bg = theme.ui.none },
|
||||
|
||||
-- Neogit
|
||||
NeogitDiffContextHighlight = { bg = theme.diff.change }, --[[ guibg=#333333 guifg=#b2b2b2 ]]
|
||||
NeogitHunkHeader = { fg = theme.syn.fun }, --[[ guifg=#cccccc guibg=#404040 ]]
|
||||
|
||||
@@ -41,6 +41,7 @@ local c = require("kanso.lib.color")
|
||||
---@field added ColorSpec
|
||||
---@field removed ColorSpec
|
||||
---@field changed ColorSpec
|
||||
---@field untracked ColorSpec
|
||||
|
||||
---@class UiElements
|
||||
---@field none ColorSpec
|
||||
@@ -178,6 +179,7 @@ return {
|
||||
added = palette.autumnGreen,
|
||||
removed = palette.autumnRed,
|
||||
changed = palette.autumnYellow,
|
||||
untracked = palette.inkGray2
|
||||
},
|
||||
term = {
|
||||
palette.zen0, -- black
|
||||
@@ -287,6 +289,7 @@ return {
|
||||
added = palette.autumnGreen,
|
||||
removed = palette.autumnRed,
|
||||
changed = palette.autumnYellow,
|
||||
untracked = palette.inkGray2
|
||||
},
|
||||
term = {
|
||||
palette.inkBlack0, -- black
|
||||
@@ -382,6 +385,7 @@ return {
|
||||
added = palette.pearlGreen2,
|
||||
removed = palette.pearlRed2,
|
||||
changed = palette.pearlYellow3,
|
||||
untracked = palette.pearlGray4
|
||||
},
|
||||
diff = {
|
||||
add = palette.pearlGreen3,
|
||||
|
||||
Reference in New Issue
Block a user