From ad1911c8dc6a3e005a48cf8d371096d63e0fe785 Mon Sep 17 00:00:00 2001 From: Dinesh Salunke Date: Sun, 10 Sep 2023 12:44:58 +0530 Subject: [PATCH] refactor: add noice options --- lua/plugins/editor.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/lua/plugins/editor.lua b/lua/plugins/editor.lua index 8d549ec..24b80a2 100644 --- a/lua/plugins/editor.lua +++ b/lua/plugins/editor.lua @@ -329,6 +329,24 @@ return { "MunifTanjim/nui.nvim", "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, + }, + }, + -- 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 + }, + }, }, {