From caaa6c440d5c3b80c03cad1dfd93989b852bb875 Mon Sep 17 00:00:00 2001 From: Aleksey Imuzov Date: Mon, 10 Jun 2024 23:41:45 +0400 Subject: [PATCH] fix(neo-tree): use last window for preview (#3560) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Similar to "trouble.nvim" I want the preview to open in the last active window. Currently the neo-tree preview opens in a floating window, which (to me) doesn’t look very good. What do you think about doing preview window the same everywhere (trouble & neo-tree)? ## Before: https://github.com/LazyVim/LazyVim/assets/3313023/7d7c21c9-158d-40ef-82f2-62e0dc795555 ## After: https://github.com/LazyVim/LazyVim/assets/3313023/bafc5bae-20cb-4dd1-8e40-1358ada573d9 --------- Co-authored-by: github-actions[bot] --- lua/lazyvim/plugins/editor.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/lazyvim/plugins/editor.lua b/lua/lazyvim/plugins/editor.lua index 8f4891b7..0e01da81 100644 --- a/lua/lazyvim/plugins/editor.lua +++ b/lua/lazyvim/plugins/editor.lua @@ -89,6 +89,7 @@ return { end, desc = "Open with System Application", }, + ["P"] = { "toggle_preview", config = { use_float = false } }, }, }, default_component_configs = {