gabrielgio.lua @ 708c3e8d2d17329cb64c81539223d9e6904d85f5

 1local key = require("gabrielgio.key")
 2
 3if not vim.g.neovide then
 4	return
 5end
 6
 7vim.g.neovide_scale_factor = 1
 8vim.g.neovide_cursor_antialiasing = true
 9vim.o.guifont = "iosevka:h20:#e-subpixelantialias"
10
11local function change_scale_factor(delta)
12	vim.g.neovide_scale_factor = vim.g.neovide_scale_factor * delta
13end
14
15key.nnoremap("<leader>-", function()
16	change_scale_factor(1.10)
17end)
18
19key.nnoremap("<leader>=", function()
20	change_scale_factor(1 / 1.10)
21end)