vim-settings/neovim/lua/neovide.lua
2024-09-19 11:55:58 -07:00

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" })