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