]> git.rmz.io Git - dotfiles.git/blob - nvim/lua/plugins/ui.lua
nvim/ui: actually... don't show bufferline on single buffer
[dotfiles.git] / nvim / lua / plugins / ui.lua
1 ---@type LazyPluginSpec
2 return {
3 {
4 "nvim-notify",
5 },
6 {
7 "bufferline.nvim",
8 ---@type BufferlineConfig
9 opts = {
10 options = {
11 always_show_bufferline = false,
12 },
13 },
14 },
15 {
16 "noice.nvim",
17 ---@type NoiceConfig
18 opts = {
19 presets = {
20 command_palette = false, -- don't position the cmdline and popupmenu together
21 lsp_doc_border = true, -- add a border to hover docs and signature help
22 },
23 cmdline = {
24 view = "cmdline",
25 },
26 routes = {
27 { -- send file written messages to mini
28 filter = {
29 event = "msg_show",
30 kind = "",
31 find = "%[w%]",
32 },
33 opts = { skip = true },
34 },
35 },
36 },
37 config = function(_, opts)
38 -- ensure [w] is written to msg_show so we can match it
39 vim.opt.shortmess:append("w")
40 vim.opt.shortmess:remove("W")
41
42 require("noice").setup(opts)
43 end,
44 },
45 {
46 "lualine.nvim",
47 --TODO: Things that were in vim but are missing
48 -- - git line add/mod/del ar next to branch name rather on right
49 -- - one status line per splits
50 -- - maybe a single one is OK too?
51 -- - I think I want a line stating wihch file is in the split though
52 -- - unix/dos eof markers
53 -- - really I only want to know if it's not unix
54 -- - filetype in text form. It's quite important to glance this quickly
55 },
56 {
57 "indent-blankline.nvim",
58 },
59 {
60 "mini.indentscope",
61 opts = {
62 draw = {
63 animation = require("mini.indentscope").gen_animation.linear({ duration = 10 }),
64 },
65 },
66 },
67 {
68 "alpha-nvim",
69 },
70 {
71 "nvim-navic",
72 },
73 {
74 "nvim-web-devicons",
75 },
76 {
77 "nui.nvim",
78 },
79 }