]> git.rmz.io Git - dotfiles.git/blob - nvim/lua/plugins/ui.lua
nvim/ui: configure noice.nvim
[dotfiles.git] / nvim / lua / plugins / ui.lua
1 return {
2 {
3 "noice.nvim",
4 opts = {
5 presets = {
6 command_palette = false, -- don't position the cmdline and popupmenu together
7 lsp_doc_border = true, -- add a border to hover docs and signature help
8 },
9 cmdline = {
10 view = "cmdline",
11 },
12 routes = {
13 { -- send file written messages to mini
14 filter = {
15 event = "msg_show",
16 kind = "",
17 find = "%[w%]",
18 },
19 opts = { skip = true },
20 },
21 },
22 },
23 config = function(_, opts)
24 -- ensure [w] is written to msg_show so we can match it
25 vim.opt.shortmess:append("w")
26 vim.opt.shortmess:remove("W")
27
28 require("noice").setup(opts)
29 end,
30 },
31 }