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