summaryrefslogtreecommitdiff
path: root/fnl/config/stabilize.fnl
diff options
context:
space:
mode:
Diffstat (limited to 'fnl/config/stabilize.fnl')
-rw-r--r--fnl/config/stabilize.fnl15
1 files changed, 15 insertions, 0 deletions
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 '<forcemark>
+ :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)