From aa9a887a084074642c2938d52378edf9c8803a5e Mon Sep 17 00:00:00 2001 From: Martin Larsson Date: Fri, 30 May 2025 14:21:22 +0200 Subject: [PATCH] War on rounded corners in Neovim, this introduces corners on more windows than I want it on thuogh, need to remove borders on Lazy and Blink for instance --- nvim/lua/plugs/arrow.lua | 2 +- nvim/lua/plugs/noice.lua | 30 ++++++++++++++++++ nvim/lua/plugs/snacks.lua | 65 ++++++++++++++++++++++++++++++++++++--- nvim/lua/vim_opt.lua | 2 ++ 4 files changed, 94 insertions(+), 5 deletions(-) diff --git a/nvim/lua/plugs/arrow.lua b/nvim/lua/plugs/arrow.lua index f77932c..89bace8 100644 --- a/nvim/lua/plugs/arrow.lua +++ b/nvim/lua/plugs/arrow.lua @@ -25,7 +25,7 @@ return { prev_item = "p", }, window = { - border = "rounded", + border = "single", } } } diff --git a/nvim/lua/plugs/noice.lua b/nvim/lua/plugs/noice.lua index eefa0f6..4fef8b3 100644 --- a/nvim/lua/plugs/noice.lua +++ b/nvim/lua/plugs/noice.lua @@ -22,4 +22,34 @@ return { notify = { level = "warn", }, + views = { + cmdline_popup = { + border = { + style = "single", + padding = { 0, 0 }, + }, + }, + cmdline_popupmenu = { + border = { + style = "single", + padding = { 0, 0 }, + }, + }, + hover = { + border = { + style = "single", + }, + }, + confirm = { + border = { + style = "single", + }, + }, + popup = { + border = { + style = "single", + }, + }, + }, + }, } diff --git a/nvim/lua/plugs/snacks.lua b/nvim/lua/plugs/snacks.lua index 7876c0a..194afcf 100644 --- a/nvim/lua/plugs/snacks.lua +++ b/nvim/lua/plugs/snacks.lua @@ -3,11 +3,65 @@ return { priority = 1000, lazy = false, opts = { + styles = { + notification = { border = "single", }, + notification_history = { border = "single", }, + blame_line = { border = "single", }, + input = { border = "single", }, + scratch = { border = "single", }, + snacks_image = { border = "single", }, + }, gitbrowse = { enabled = true, what = "branch", }, - picker = { enabled = true, }, + picker = { + enabled = true, + win = { + input = { border = "single", }, + list = { border = "single", }, + preview = { border = "single", }, + }, + layouts = { + default = { + layout = { + backdrop = false, + row = 1, + width = 0.6, + min_width = 80, + height = 0.95, + border = "none", + box = "vertical", + { + box = "vertical", + border = "single", + title = "{title} {live} {flags}", + title_pos = "center", + { win = "input", height = 1, border = "bottom" }, + { win = "list", border = "none" }, + }, + { win = "preview", title = "{preview}", height = 0.65, border = "single" }, + }, + }, + select = { + preview = false, + layout = { + backdrop = false, + width = 0.5, + min_width = 80, + height = 0.4, + min_height = 3, + box = "vertical", + border = "single", + title = "{title}", + title_pos = "center", + { win = "input", height = 1, border = "bottom" }, + { win = "list", border = "none" }, + { win = "preview", title = "{preview}", height = 0.4, border = "top" }, + }, + }, + }, + }, dashboard = { enabled = true, preset = { @@ -30,10 +84,13 @@ return { }, }, input = { enabled = true, }, - notifier = { enabled = true, }, + notifier = { + enabled = true, + padding = false, + }, quickfile = { enabled = true, }, scroll = { - enabled = true, + enabled = false, animate = { duration = { step = 5, total = 500 }, easing = "outCirc", @@ -49,7 +106,7 @@ return { debounce = 100, }, zen = { - enabled = true, + enabled = false, toggles = { dim = false, }, on_open = function() _G["snacks_zen_mode"] = true diff --git a/nvim/lua/vim_opt.lua b/nvim/lua/vim_opt.lua index 457dff2..bc3a794 100644 --- a/nvim/lua/vim_opt.lua +++ b/nvim/lua/vim_opt.lua @@ -95,6 +95,8 @@ opt.shortmess = "acstFOSW" -- Allows to select one more after EOL opt.virtualedit = "onemore" +opt.winborder = "single" + opt.wrap = false opt.sidescroll = 4 vim.api.nvim_create_autocmd("FileType", {