Skip to content

[Question] How to resize font #2301

Answered by palsmo
TornaxO7 asked this question in Q&A
Apr 12, 2022 · 13 comments · 4 replies
Discussion options

You must be logged in to vote

This works flawlessly and is the simplest solution, hope it helps!
( *updates the screen immediately, divide by 0 is handled by neovide and just closes the app )

if vim.g.neovide then
    vim.keymap.set({ "n", "v" }, "<C-+>", ":lua vim.g.neovide_scale_factor = vim.g.neovide_scale_factor + 0.1<CR>")
    vim.keymap.set({ "n", "v" }, "<C-->", ":lua vim.g.neovide_scale_factor = vim.g.neovide_scale_factor - 0.1<CR>")
    vim.keymap.set({ "n", "v" }, "<C-0>", ":lua vim.g.neovide_scale_factor = 1<CR>")
end

Replies: 13 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@palsmo
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by MultisampledNight
Comment options

You must be logged in to vote
3 replies
@fredizzimo
Comment options

@palsmo
Comment options

@palsmo
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
8 participants
Converted from issue

This discussion was converted from issue #1272 on January 23, 2024 16:44.