gabrielgio.lua @ 2d94bbee48f6a887e68737ed8d27e3b193618878

 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)