2023-11-18 02:27:14 +02:00
|
|
|
-- Replace much of neovim's default UI
|
|
|
|
-- with a modern replacement
|
2023-11-25 14:37:36 +02:00
|
|
|
--- @type LazyPluginSpec
|
2023-11-17 08:01:52 +02:00
|
|
|
return {
|
2023-11-18 02:27:14 +02:00
|
|
|
"folke/noice.nvim",
|
|
|
|
event = "VeryLazy",
|
|
|
|
dependencies = { "MunifTanjim/nui.nvim", "rcarriga/nvim-notify" },
|
2023-11-25 14:37:36 +02:00
|
|
|
--- @type NoiceConfig
|
2023-11-18 02:27:14 +02:00
|
|
|
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 = {
|
2023-11-18 22:44:34 +02:00
|
|
|
-- add a border to hover docs and signature help
|
|
|
|
lsp_doc_border = true,
|
2023-11-17 08:01:52 +02:00
|
|
|
},
|
|
|
|
},
|
2023-11-25 14:13:26 +02:00
|
|
|
keys = {
|
|
|
|
{
|
|
|
|
desc = "Dismiss notifications",
|
|
|
|
"<leader>d",
|
|
|
|
"<cmd>NoiceDismiss<cr>",
|
|
|
|
},
|
|
|
|
},
|
2023-11-17 08:01:52 +02:00
|
|
|
}
|