From 9651a27812093d438c506259f018789ec6baf844 Mon Sep 17 00:00:00 2001 From: Dinesh Salunke Date: Thu, 14 Sep 2023 08:53:00 +0530 Subject: [PATCH] refactor: add some views config for noice --- lua/plugins/editor.lua | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/lua/plugins/editor.lua b/lua/plugins/editor.lua index eed218f..5f2a71d 100644 --- a/lua/plugins/editor.lua +++ b/lua/plugins/editor.lua @@ -357,6 +357,36 @@ return { opts = { skip = true }, }, }, + views = { + cmdline_popup = { + position = { + row = 5, + col = "50%", + }, + size = { + width = 60, + height = "auto", + }, + }, + popupmenu = { + relative = "editor", + position = { + row = 8, + col = "50%", + }, + size = { + width = 60, + height = 10, + }, + border = { + style = "rounded", + padding = { 0, 1 }, + }, + win_options = { + winhighlight = { Normal = "Normal", FloatBorder = "DiagnosticInfo" }, + }, + }, + }, lsp = { -- override markdown rendering so that **cmp** and other plugins use **Treesitter** override = {