summaryrefslogtreecommitdiff
path: root/noice.lua
blob: 2762d64f6c8dc79bea5c7d5376bb946b29d28c1c (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
return {
	"folke/noice.nvim",
	event = "VeryLazy",
	dependencies = {
		"MunifTanjim/nui.nvim",
		{
			"rcarriga/nvim-notify",
			opts = {
				background_colour = "#000000", -- Fixes the "NotifyBackground" error
				render = "minimal", -- Cleaner look for transparent terminals
			},
		},
	},
	opts = {
		lsp = {
			-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
			override = {
				["vim.lsp.util.convert_input_to_markdown_lines"] = true,
				["vim.lsp.util.stylize_markdown"] = true,
				["cmp.entry.get_documentation"] = true,
			},
		},
		presets = {
			bottom_search = true, -- keeps search at the bottom
			command_palette = true, -- centered cmdline and popupmenu
			long_message_to_split = true, -- sends long messages to a buffer
			inc_rename = false,
			lsp_doc_border = true, -- enabled this for better readability
		},
		-- Add views/routes here if you want to filter specific messages
	},
}