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