size matters.nvim
1.0.0
soydev 플러그인 시리즈.
Neovide 또는 Goneovim과 같은 최신 Neovim GUI 클라이언트에 동적 글꼴 스케일링을 추가하는 LUA 플러그인.
| 키 맵 | 명령 | |
|---|---|---|
| 글꼴 크기를 늘리십시오 | ctrl + + / ctrl + 스크롤 럽 | FontSizeUp <num> |
| 글꼴 크기를 줄입니다 | ctrl + - / ctrl + 스크롤 다운 | FontSizeDown <num> |
| 글꼴을 기본값으로 재설정하십시오 | ctrl + alt + = | FontReset |
플러그인을 설치하는 간단한 방법은 플러그인 관리자를 통한 것입니다. 예 : Packer.nvim
use " tenxsoydev/size-matters.nvim "그런 다음 대부분의 다른 플러그인처럼로드하십시오. 또한 GUI 클라이언트를 사용할 때만로드 할 수 있도록 조건으로 래핑 할 수 있습니다. 예,
if vim . g . neovide or vim . g . goneovim or vim . g . nvui or vim . g . gnvim then
require ( " size-matters " )
end일부 구성을 변경하려면 기본값입니다.
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- v0.7과 함께 도입 된 API가 사용됩니다.