summaryrefslogtreecommitdiff
path: root/fnl/config/stabilize.fnl
blob: 5ac2a7fcac5391808cbc350d2630cfe0e73e51c3 (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 config.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.setup :stabilize opts)