size matters.nvim
1.0.0
☕ Soydev Plugin -Serie.
LUA -Plugin, das den modernen NEOVIM -GUI -Kunden wie Neovide oder Goneovim dynamische Schriftart fügt.
| Keymaps | Befehle | |
|---|---|---|
| Schriftstelle erhöhen | Strg + + / Strg + Scrollup | FontSizeUp <num> |
| Schriftgröße verringern | Strg + - / Strg + Scroldown | FontSizeDown <num> |
| Schreiben Sie die Schriftsatz auf Standard zurück | Strg + Alt + = | FontReset |
Eine einfache Möglichkeit, das Plugin zu installieren, ist über einen Plugin -Manager. ZB Packer.nvim
use " tenxsoydev/size-matters.nvim "Laden Sie es dann einfach wie die meisten anderen Plugins. Zusätzlich können Sie es in einem Zustand einwickeln, der nur bei Verwendung eines GUI -Clients geladen wird. Z.B,
if vim . g . neovide or vim . g . goneovim or vim . g . nvui or vim . g . gnvim then
require ( " size-matters " )
endWenn Sie einige Konfigurationen ändern möchten, sind dies die Standardeinstellungen
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 - Wie APIs mit V0.7 eingeführt werden.