nvim cmp fonts
1.0.0

NVIM-CMP-FONTS는 글꼴 소스를 제공하는 NVIM-CMP의 완료 소스입니다. 이는 구성 파일 유형을 편집하는 데 특히 유용합니다. fc-list 명령을 사용하여 볼 수있는 컴퓨터에 설치된 글꼴에서 얻을 수 있습니다. Neovim을 열 때마다 글꼴 목록이 업데이트됩니다.
require " packer " . startup ( function ( use )
use " amarakon/nvim-cmp-fonts "
end )다음 코드 블록은 기본 옵션을 보여줍니다.
require " cmp " . setup {
sources = {
-- Most font names have spaces in them. However, nvim-cmp restarts the
-- completion after a space, disallowing you to complete a font name
-- with spaces. The `space_filter` option is a way to get around this by
-- using a different character to represent spaces. If you wish, you can
-- set this option to a space character, but you know the downside of
-- that.
{ name = " fonts " , option = { space_filter = " - " } }
}
} -- Only enable `fonts` for `conf` and `config` file types
require " cmp " . setup . filetype ({ " conf " , " config " },
{ sources = { { name = " fonts " } } })