From 712bdc4eb8c2c8446671c70116a637e45153c008 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 18 Sep 2022 22:06:23 +0200 Subject: Add stabilize plugin --- fnl/config/stabilize.fnl | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 fnl/config/stabilize.fnl (limited to 'fnl/config/stabilize.fnl') diff --git a/fnl/config/stabilize.fnl b/fnl/config/stabilize.fnl new file mode 100644 index 0000000..ff2ac19 --- /dev/null +++ b/fnl/config/stabilize.fnl @@ -0,0 +1,15 @@ +;; Stabilize window open/close events. +(module config.stabilize {autoload {: util}}) + +(def- opts {:force true + ;; stabilize window even when current cursor position will be hidden behind new window + :forcemark nil + ;; set context mark to register on force event which can be jumped to with ' + :ignore {;; do not manage windows matching these file/buftypes + :filetype [:help :list :Trouble] + :buftype [:terminal :quickfix :loclist]} + :nested nil + ;; comma-separated list of autocmds that wil trigger the plugins window restore function + }) + +(util.use-config :stabilize opts) -- cgit v1.2.3-70-g09d2