Skip to content

Commit a9ccdfd

Browse files
committed
fix(presets): restore custom config. Fixes #105
1 parent aabfd85 commit a9ccdfd

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lua/tiny-inline-diagnostic/init.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ local function normalize_config(config)
7676
config.options.overflow.mode = config.options.overflow.mode:lower()
7777
end
7878

79-
if config.preset then
79+
if config.signs then
80+
local preset = presets.build(config.preset or "modern", config.transparent_bg)
81+
config = vim.tbl_deep_extend("keep", config, preset)
82+
elseif config.preset then
8083
local preset = presets.build(config.preset:lower(), config.transparent_bg)
8184
config = vim.tbl_deep_extend("force", config, preset)
8285
end

lua/tiny-inline-diagnostic/presets.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function M.build(name, transparent_bg)
7676
}),
7777
powerline = create_preset({
7878
signs = {
79-
arrow = "",
79+
arrow = " ",
8080
up_arrow = "",
8181
right = " ",
8282
left = "",

0 commit comments

Comments
 (0)