aboutsummaryrefslogtreecommitdiff
path: root/lua/gabrielgio/neovide.lua
blob: cb712435cfda1705851324d3ae66d8d0ed89f823 (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)