Skip to content

Commit 53e2428

Browse files
committed
update ui2 config
1 parent cf547a0 commit 53e2428

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

lua/ui.lua

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -129,23 +129,22 @@ M.rand_colorscheme()
129129
require("vim._core.ui2").enable {
130130
enable = true,
131131
msg = { -- Options related to the message module.
132-
---@type 'cmd'|'msg' Default message target, either in the
133-
---cmdline or in a separate ephemeral message window.
134-
---@type string|table<string, 'cmd'|'msg'|'pager'> Default message target
135-
---or table mapping |ui-messages| kinds and triggers to a target.
136-
targets = "cmd",
132+
targets = {
133+
[""] = "cmd",
134+
empty = "msg",
135+
},
137136
cmd = { -- Options related to messages in the cmdline window.
138-
height = 0.5, -- Maximum height while expanded for messages beyond 'cmdheight'.
137+
height = 0.2, -- Maximum height while expanded for messages beyond 'cmdheight'.
139138
},
140139
dialog = { -- Options related to dialog window.
141-
height = 0.5, -- Maximum height.
140+
height = 0.2, -- Maximum height.
142141
},
143142
msg = { -- Options related to msg window.
144-
height = 0.5, -- Maximum height.
145-
timeout = 4000, -- Time a message is visible in the message window.
143+
height = 0.2, -- Maximum height.
144+
timeout = 1000, -- Time a message is visible in the message window.
146145
},
147146
pager = { -- Options related to message window.
148-
height = 0.5, -- Maximum height.
147+
height = 0.3, -- Maximum height.
149148
},
150149
},
151150
}

0 commit comments

Comments
 (0)