gabrielgio.lua @ 7b73788635bdddffb340ff779b83d04556b3f8c8

 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)