summaryrefslogtreecommitdiff
path: root/fnl/config/stabilize.fnl
blob: 59b7c5db234cf1026045d078c9d95313d25ffb61 (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)