summaryrefslogtreecommitdiff
path: root/lua/config/plugins/ui.lua
blob: 7e4f44c4ab71e849749d2cc57b2d5d098121aa8c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
return {
	{
		"bufferline.nvim",
		event = "DeferredUIEnter",
		after = function(_)
			require("bufferline").setup({
				highlights = require("catppuccin.groups.integrations.bufferline").get(),
			})
		end,
	},

	{
		"lualine.nvim",
		event = "DeferredUIEnter",
		after = function(_)
			require("lualine").setup({
				options = {
					theme = "catppuccin",
				},

				sections = {
					lualine_a = { "mode" },
					lualine_b = { "branch", "diff", "diagnostics" },
					lualine_c = { "filename" },

					lualine_x = {
						-- SuperCollider status bar (server status)
						{
							function()
								-- NOTE: for some reason LuaLS doesn't find `gsub` in string o.O
								---@diagnostic disable-next-line
								return require("scnvim.statusline").get_server_status():gsub("%%", "%%%%")
							end,
							cond = function()
								return vim.bo.filetype == "supercollider"
							end,
						},

						"filetype",
						"encoding",
						"fileformat",
					},
					lualine_y = { "progress" },
					lualine_z = { "location" },
				},
			})
		end,
	},

	{
		"noice.nvim",
		event = "DeferredUIEnter",
		after = function(_)
			require("noice").setup({
				routes = {
					{
						filter = {
							event = "msg_show",
							find = "%d+L, %d+B",
						},
						view = "mini",
					},
				},
			})
		end,
	},

	{
		"todo-comments.nvim",
		event = "DeferredUIEnter",
		after = function(_)
			require("todo-comments").setup()
		end,
	},
}