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