mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 17:37:43 -04:00
61 lines
1.5 KiB
Lua
61 lines
1.5 KiB
Lua
return {
|
|
"folke/noice.nvim",
|
|
event = "VeryLazy",
|
|
opts = {
|
|
-- add any options here
|
|
},
|
|
dependencies = {
|
|
-- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
|
|
"MunifTanjim/nui.nvim",
|
|
-- OPTIONAL:
|
|
-- `nvim-notify` is only needed, if you want to use the notification view.
|
|
-- If not available, we use `mini` as the fallback
|
|
-- "rcarriga/nvim-notify",
|
|
},
|
|
config = function()
|
|
require("noice").setup({
|
|
cmdline = { enabled = true },
|
|
messages = { enabled = false },
|
|
|
|
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,
|
|
},
|
|
},
|
|
|
|
views = {
|
|
cmdline_popup = {
|
|
position = {
|
|
row = "50%",
|
|
col = "50%",
|
|
},
|
|
size = {
|
|
width = 60,
|
|
height = "auto",
|
|
},
|
|
},
|
|
popupmenu = {
|
|
relative = "editor",
|
|
position = {
|
|
row = "61%",
|
|
col = "50%",
|
|
},
|
|
size = {
|
|
width = 60,
|
|
height = 10,
|
|
},
|
|
border = {
|
|
style = "rounded",
|
|
padding = { 0, 1 },
|
|
},
|
|
win_options = {
|
|
winhighlight = { Normal = "Normal", FloatBorder = "DiagnosticInfo" },
|
|
},
|
|
},
|
|
},
|
|
})
|
|
end,
|
|
}
|