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 " } } })