size matters.nvim
1.0.0
☕ Série de plug -in de soja.
O plug -in Lua que adiciona escala de fonte dinâmica a clientes modernos da GUI da Neovim, como Neovide ou Gonevim.
| Keymaps | Comandos | |
|---|---|---|
| Aumente o tamanho da fonte | Ctrl + + / Ctrl + Rollup | FontSizeUp <num> |
| Diminuir o tamanho da fonte | Ctrl + - / Ctrl + Scrolldown | FontSizeDown <num> |
| Redefinir a fonte para o padrão | Ctrl + alt + = | FontReset |
Uma maneira simples de instalar o plug -in é através de um gerenciador de plug -in. Por exemplo, packer.nvim
use " tenxsoydev/size-matters.nvim "Em seguida, basta carregá -lo como a maioria dos outros plugins. Além disso, você pode embrulhá -lo em uma condição apenas para ser carregado ao usar um cliente da GUI. Por exemplo,
if vim . g . neovide or vim . g . goneovim or vim . g . nvui or vim . g . gnvim then
require ( " size-matters " )
endSe você deseja alterar algumas configurações, esses são os padrões
require ( " size-matters " ). setup ({
default_mappings = true ,
-- font resize step size
step_size = 1 ,
notifications = {
enable = true ,
-- ms how long a notification should be displayed (only applies if notify is used)
timeout = 150 ,
-- the notifications position may be affected by the time it takes for the client to re-render
-- to address this, it can be displayed with a delay.
delay = 300 ,
}
-- the font loaded when using the reset cmd / shortcut
reset_font = vim . api . nvim_get_option ( " guifont " ),
})nvim> = v0.7 - como as APIs introduzidas com v0.7 são usadas.