summaryrefslogtreecommitdiff
path: root/users/seth/programs/neovim/config/plugins/ui.lua
blob: 3a0cc2ebcb7b8cda3c02dbdc444291f310a31b81 (plain)
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
require("dressing")

vim.notify = require("notify")

vim.ui.select = function(...)
	return vim.ui.select(...)
end

vim.ui.input = function(...)
	return vim.ui.input(...)
end

require("noice").setup({
	lsp = {
		override = {
			["vim.lsp.util.convert_input_to_markdown_lines"] = true,
			["vim.lsp.util.stylize_markdown"] = true,
			["cmp.entry.get_documentation"] = true,
		},
	},
	routes = {
		{
			filter = {
				event = "msg_show",
				any = {
					{ find = "%d+L, %d+B" },
					{ find = "; after #%d+" },
					{ find = "; before #%d+" },
				},
			},
			view = "mini",
		},
	},
	presets = {
		bottom_search = true,
		command_palette = true,
		long_message_to_split = true,
		inc_rename = true,
	},
})