refactor(nvim): improve how noice setup is handled

This commit is contained in:
Price Hiller 2024-06-11 22:17:26 -05:00
parent 1971907a75
commit 59f7c95103
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -2,10 +2,8 @@ return {
{ {
"folke/noice.nvim", "folke/noice.nvim",
lazy = false, lazy = false,
init = function() config = function()
vim.opt.cmdheight = 0 require("noice").setup({
end,
opts = {
lsp = { lsp = {
override = { override = {
["vim.lsp.util.convert_input_to_markdown_lines"] = true, ["vim.lsp.util.convert_input_to_markdown_lines"] = true,
@ -56,7 +54,10 @@ return {
filter = { event = "msg_show", min_height = 20 }, filter = { event = "msg_show", min_height = 20 },
}, },
}, },
}, })
vim.opt.cmdheight = 0
end,
dependencies = { dependencies = {
"MunifTanjim/nui.nvim", "MunifTanjim/nui.nvim",
{ {