vim-settings/neovim/lua/neovide.lua

15 lines
576 B
Lua
Raw Normal View History

2024-09-19 18:55:58 +00:00
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" })