mirror of
https://github.com/stevenproctor/dotfiles.git
synced 2026-01-28 08:39:56 -06:00
neovim - update zoom-toggle
This commit is contained in:
@@ -1,16 +1,13 @@
|
||||
(module dotfiles.zoom-toggle
|
||||
{autoload
|
||||
{a aniseed.core}
|
||||
require
|
||||
{anenv aniseed.env
|
||||
{autoload {a aniseed.core}
|
||||
require {anenv aniseed.env
|
||||
nvim aniseed.nvim
|
||||
nu aniseed.nvim.util
|
||||
u dotfiles.util}})
|
||||
|
||||
(var unzoom! nil)
|
||||
|
||||
(defn zoom-toggle []
|
||||
(if unzoom!
|
||||
(defn zoom-toggle [] (if unzoom!
|
||||
(do
|
||||
(nvim.command unzoom!)
|
||||
(set unzoom! nil))
|
||||
@@ -19,6 +16,6 @@
|
||||
(nvim.ex.resize)
|
||||
(nvim.ex.vertical :resize))))
|
||||
|
||||
|
||||
(nu.fn-bridge :ZoomToggle :dotfiles.zoom-toggle :zoom-toggle {:return false})
|
||||
(u.nnoremap :<C-W>z ":call ZoomToggle()<CR>")
|
||||
(u.tnoremap :t "Ω" "<c-\\><c-n>:call ZoomToggle()<CR>")
|
||||
|
||||
Reference in New Issue
Block a user