Skip to content

Commit aabfd85

Browse files
committed
feat: redo powerline preset
1 parent d161597 commit aabfd85

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

lua/tiny-inline-diagnostic/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ local function normalize_config(config)
7878

7979
if config.preset then
8080
local preset = presets.build(config.preset:lower(), config.transparent_bg)
81-
config = vim.tbl_deep_extend("keep", config, preset)
81+
config = vim.tbl_deep_extend("force", config, preset)
8282
end
8383

8484
if type(config.options.multilines) == "boolean" then

lua/tiny-inline-diagnostic/presets.lua

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ local default_signs = {
1313
local function create_preset(overrides)
1414
local preset = {
1515
signs = vim.tbl_extend("force", default_signs, overrides.signs or {}),
16+
options = vim.tbl_extend("force", {}, overrides.options or {}),
1617
blend = {
1718
factor = overrides.blend and overrides.blend.factor or 0.22,
1819
},
@@ -75,8 +76,13 @@ function M.build(name, transparent_bg)
7576
}),
7677
powerline = create_preset({
7778
signs = {
78-
left = "",
79+
arrow = "",
80+
up_arrow = "",
7981
right = " ",
82+
left = "",
83+
},
84+
options = {
85+
set_arrow_to_diag_color = true,
8086
},
8187
}),
8288
}

0 commit comments

Comments
 (0)