mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-11-01 14:26:30 +00:00
15 lines
576 B
Lua
15 lines
576 B
Lua
local utils = require("utils")
|
|
|
|
vim.g.neovide_default_scale_factor = 0.8
|
|
vim.g.neovide_scale_factor = vim.g.neovide_default_scale_factor
|
|
|
|
utils.keymap_set({ "n", "v" }, "<C-+>", function()
|
|
vim.g.neovide_scale_factor = vim.g.neovide_scale_factor + 0.1
|
|
end, { desc = "Zoom in" })
|
|
utils.keymap_set({ "n", "v" }, "<C-->", function()
|
|
vim.g.neovide_scale_factor = vim.g.neovide_scale_factor - 0.1
|
|
end, { desc = "Zoom out" })
|
|
utils.keymap_set({ "n", "v" }, "<C-0>", function()
|
|
vim.g.neovide_scale_factor = vim.g.neovide_default_scale_factor
|
|
end, { desc = "Zoom reset" })
|