diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-09-18 22:06:23 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-09-18 22:06:23 +0200 |
commit | 712bdc4eb8c2c8446671c70116a637e45153c008 (patch) | |
tree | eb58159c266def4edd81ee90cb20da3be9f47096 /fnl | |
parent | b327c7ffb20c40df4237626b4a26904592d8dace (diff) |
Add stabilize plugin
Diffstat (limited to 'fnl')
-rw-r--r-- | fnl/config/init.fnl | 1 | ||||
-rw-r--r-- | fnl/config/stabilize.fnl | 15 | ||||
-rw-r--r-- | fnl/plugins.fnl | 1 |
3 files changed, 17 insertions, 0 deletions
diff --git a/fnl/config/init.fnl b/fnl/config/init.fnl index fb1d95b..2d41bff 100644 --- a/fnl/config/init.fnl +++ b/fnl/config/init.fnl @@ -25,6 +25,7 @@ config.spectre config.spellsitter config.stay-in-place + config.stabilize config.surround config.telescope config.toggleterm 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) diff --git a/fnl/plugins.fnl b/fnl/plugins.fnl index b3aa735..8d2ccce 100644 --- a/fnl/plugins.fnl +++ b/fnl/plugins.fnl @@ -51,6 +51,7 @@ :b0o/SchemaStore.nvim {} :rmagatti/session-lens {} :lewis6991/spellsitter.nvim {} + :luukvbaal/stabilize.nvim {} :gbprod/stay-in-place.nvim {} :nvim-telescope/telescope-file-browser.nvim {} :nvim-telescope/telescope-fzf-native.nvim {:run :make} |