summaryrefslogtreecommitdiff
path: root/fnl/config/stabilize.fnl
blob: ff2ac19de9a1168927629db9268d68d0a8536ec8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)