From a7213e6cac9d104c6f3308ea25c1e3953d07f7d9 Mon Sep 17 00:00:00 2001 From: Rakshit Sinha Date: Thu, 28 Nov 2024 01:17:28 -0800 Subject: [PATCH] Added the folke/noice plugin --- lua/rakshit/plugins/noice.lua | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 lua/rakshit/plugins/noice.lua diff --git a/lua/rakshit/plugins/noice.lua b/lua/rakshit/plugins/noice.lua new file mode 100644 index 00000000..33e77977 --- /dev/null +++ b/lua/rakshit/plugins/noice.lua @@ -0,0 +1,30 @@ +return { + "folke/noice.nvim", + event = "VeryLazy", + 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", + }, + 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, -- requires hrsh7th/nvim-cmp + }, + }, + -- you can enable a preset for easier configuration + presets = { + bottom_search = true, -- use a classic bottom cmdline for search + command_palette = true, -- position the cmdline and popupmenu together + long_message_to_split = true, -- long messages will be sent to a split + inc_rename = false, -- enables an input dialog for inc-rename.nvim + lsp_doc_border = false, -- add a border to hover docs and signature help + }, + }, +}