37 lines
1.2 KiB
Lua
37 lines
1.2 KiB
Lua
return {
|
|
"folke/noice.nvim",
|
|
dependencies = {
|
|
"MunifTanjim/nui.nvim",
|
|
"rcarriga/nvim-notify",
|
|
{ "nvim-telescope/telescope.nvim", optional = true },
|
|
},
|
|
event = "VeryLazy",
|
|
opts = {
|
|
routes = {
|
|
-- I want telescope-ui-select to trigger here not noice
|
|
{ filter = { event = "lsp", kind = "search_count" }, opts = { skip = true } },
|
|
{ filter = { event = "lsp" }, opts = { skip = true } }, -- TODO come back to this, im having weird issues with insert mode getting broken.
|
|
},
|
|
messages = {
|
|
view = "mini", -- default view for messages
|
|
view_error = "notify", -- view for errors
|
|
view_warn = "mini", -- view for warnings
|
|
view_history = "messages", -- view for :messages
|
|
view_search = false, -- view for search count messages. Set to `false` to disable
|
|
},
|
|
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, -- requires hrsh7th/nvim-cmp
|
|
},
|
|
},
|
|
},
|
|
config = function(_, opts)
|
|
require("noice").setup(opts)
|
|
U.safeRequire("telescope", function(t)
|
|
t.load_extension("noice")
|
|
end)
|
|
end,
|
|
}
|