diff options
| author | WriterV2 <primary-v2@protonmail.com> | 2026-04-24 13:32:18 +0200 |
|---|---|---|
| committer | WriterV2 <primary-v2@protonmail.com> | 2026-04-24 13:32:18 +0200 |
| commit | 3fa50df2a5ffe2120111fb2f1e05c28cfbfa054b (patch) | |
| tree | f425cc59a65372429c15b05d6decaab5d549e28a /.config/nvim | |
| parent | fc96e7432f30ecb6d469937ee253d2e69ba3536c (diff) | |
Neovim: Fix 'PRESS Enter' nuisance temporarily
Diffstat (limited to '.config/nvim')
| -rw-r--r-- | .config/nvim/lua/settings.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.config/nvim/lua/settings.lua b/.config/nvim/lua/settings.lua index 8548605..71db5ac 100644 --- a/.config/nvim/lua/settings.lua +++ b/.config/nvim/lua/settings.lua @@ -12,3 +12,27 @@ vim.opt.completeopt = { "menuone", "noinsert", "noselect" } vim.opt.statusline = "%= %f %= " vim.opt.cursorline = true vim.cmd("highlight clear CursorLine") + +require('vim._core.ui2').enable({ + enable = true, -- Whether to enable or disable the UI. + msg = { -- Options related to the message module. + ---@type 'cmd'|'msg' Default message target, either in the + ---cmdline or in a separate ephemeral message window. + ---@type string|table<string, 'cmd'|'msg'|'pager'> Default message target + ---or table mapping |ui-messages| kinds and triggers to a target. + targets = 'cmd', + cmd = { -- Options related to messages in the cmdline window. + height = 0.5 -- Maximum height while expanded for messages beyond 'cmdheight'. + }, + dialog = { -- Options related to dialog window. + height = 0.5, -- Maximum height. + }, + msg = { -- Options related to msg window. + height = 0.5, -- Maximum height. + timeout = 4000, -- Time a message is visible in the message window. + }, + pager = { -- Options related to message window. + height = 1, -- Maximum height. + }, + }, +}) |
