add zoom toggle to nvim

This commit is contained in:
Alexander Navarro 2025-08-01 16:09:17 -04:00
parent 19cbbb9fa8
commit a404d3af2c
3 changed files with 25 additions and 18 deletions

View file

@ -43,6 +43,7 @@ sops = "latest"
usage = "latest" usage = "latest"
yazi = "latest" yazi = "latest"
zoxide = "latest" zoxide = "latest"
watchexec = "latest"
[settings] [settings]
lockfile = true lockfile = true

View file

@ -34,7 +34,7 @@ opt.nrformats = 'blank,bin,hex'
opt.number = true -- Print line number opt.number = true -- Print line number
opt.pumblend = 10 -- Popup blend opt.pumblend = 10 -- Popup blend
opt.pumheight = 10 -- Maximum number of entries in a popup opt.pumheight = 10 -- Maximum number of entries in a popup
opt.relativenumber = true -- Relative line numbers -- opt.relativenumber = true -- Relative line numbers
opt.scrolloff = 15 -- Lines of context opt.scrolloff = 15 -- Lines of context
opt.sessionoptions = { "buffers", "curdir", "tabpages", "winsize" } opt.sessionoptions = { "buffers", "curdir", "tabpages", "winsize" }
opt.shiftround = true -- Round indent opt.shiftround = true -- Round indent

View file

@ -238,5 +238,11 @@ return {
vim.api.nvim_create_user_command("SessionDelete", function() vim.api.nvim_create_user_command("SessionDelete", function()
require('mini.sessions').select('delete') require('mini.sessions').select('delete')
end, {}) end, {})
vim.keymap.set('n', '<Leader>uz', function()
require('mini.misc').zoom()
end,
{ desc = 'Toggle zoom', silent = true })
end end
} }