size matters.nvim
1.0.0
☕ Serie de complementos SOYDEV.
Lua complemento que agrega escala dinámica de fuentes a clientes de GUI neovim modernos como Neovide o Goovim.
| Kimapas | Comandos | |
|---|---|---|
| Aumentar el tamaño de la fuente | CTRL + + / CTRL + Scrollup | FontSizeUp <num> |
| Disminuir el tamaño de la fuente | Ctrl + - / ctrl + scrusldown | FontSizeDown <num> |
| Restablecer fuente al valor predeterminado | Ctrl + Alt + = | FontReset |
Una forma simple de instalar el complemento es a través de un administrador de complementos. Por ejemplo, Packer.nvim
use " tenxsoydev/size-matters.nvim "Luego solo cargalo como la mayoría de los otros complementos. Además, puede envolverlo en una condición para cargar solo cuando use un cliente GUI. P.ej,
if vim . g . neovide or vim . g . goneovim or vim . g . nvui or vim . g . gnvim then
require ( " size-matters " )
endSi desea cambiar algunas configuraciones, esas son los valores predeterminados
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 se utilizan API introducidas con V0.7.