gabrielgio.lua @ 1f10205b39b1419c1644f749aea4b57baa12f4ea

 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)