add zoom toggle to nvim
This commit is contained in:
parent
19cbbb9fa8
commit
a404d3af2c
3 changed files with 25 additions and 18 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue