From: Samir Benmendil Date: Tue, 11 Apr 2023 16:50:51 +0000 (+0100) Subject: nvim/ui: configure noice.nvim X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/ff8b00535ab893c35d330d58bc3ec019c9cf544f nvim/ui: configure noice.nvim * send simple vim messages to mini view * use classic command line * add border to lsp docs --- diff --git a/nvim/lua/plugins/ui.lua b/nvim/lua/plugins/ui.lua new file mode 100644 index 0000000..e91dbb2 --- /dev/null +++ b/nvim/lua/plugins/ui.lua @@ -0,0 +1,31 @@ +return { + { + "noice.nvim", + opts = { + presets = { + command_palette = false, -- don't position the cmdline and popupmenu together + lsp_doc_border = true, -- add a border to hover docs and signature help + }, + cmdline = { + view = "cmdline", + }, + routes = { + { -- send file written messages to mini + filter = { + event = "msg_show", + kind = "", + find = "%[w%]", + }, + opts = { skip = true }, + }, + }, + }, + config = function(_, opts) + -- ensure [w] is written to msg_show so we can match it + vim.opt.shortmess:append("w") + vim.opt.shortmess:remove("W") + + require("noice").setup(opts) + end, + }, +}