From 3673a7ea063618489f82d76cab1b8bad34d54bc4 Mon Sep 17 00:00:00 2001 From: mrflos Date: Mon, 12 Aug 2024 17:15:52 +0300 Subject: [PATCH] feat(nvim): avoid popups --- dotfiles/nvim/lua/plugins/mrflos.lua | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/dotfiles/nvim/lua/plugins/mrflos.lua b/dotfiles/nvim/lua/plugins/mrflos.lua index d92a633..f8f34fd 100644 --- a/dotfiles/nvim/lua/plugins/mrflos.lua +++ b/dotfiles/nvim/lua/plugins/mrflos.lua @@ -83,7 +83,7 @@ return { }, }, window = { - position = "float", + position = "current", }, }, }, @@ -99,11 +99,24 @@ return { }, }, }, + { + "folke/noice.nvim", + event = "VeryLazy", + opts = { + cmdline = { + view = "cmdline", + }, + presets = { + bottom_search = true, + command_palette = false, + }, + }, + }, { "nvim-telescope/telescope.nvim", opts = { defaults = { - layout_strategy = "center", + layout_strategy = "bottom_pane", layout_config = { prompt_position = "top", preview_cutoff = 5, -- Preview should always show (unless previewer = false) @@ -117,9 +130,9 @@ return { sorting_strategy = "ascending", border = true, borderchars = { - prompt = { "─", "│", " ", "│", "╭", "╮", "│", "│" }, - results = { "─", "│", "─", "│", "├", "┤", "╯", "╰" }, - preview = { "─", "│", "─", "│", "╭", "╮", "╯", "╰" }, + prompt = { "─", "│", "─", "│", "╭", "╮", "╯", "╰" }, + results = { "─", "│", "─", "│", "├", "╮", "╯", "╰" }, + preview = { "─", "│", "─", "│", "╭", "┤", "╯", "╰" }, }, }, },