Skip to content

wasden/cmp-flypy.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cmp-flypy.nvim

A chinese IM for neovim
Peek-flypy

Description

使用补全插件无缝输入中英文(码表挂接)

Feature

  • 与其他补全同时存在
  • 无需切换,直接输入中英文
  • 小鹤音形(flypy)
  • 98五笔(wubi98)
    Peek-wubi98

Requirements

  • neovim
  • nvim-cmp

Installation

-- packer
-- 默认配置
use {
  'wasden/cmp-flypy.nvim',
  run = "make",                    -- make flypy只编译小鹤音形, make wubi98只编译98五笔, make或make all全编译
  after = "nvim-cmp",
  config = function()              -- 配置config以修改默认配置
    require("flypy").setup({
      dict_name = "flypy",         -- 选择码表:flypy为小鹤音形,wubi98为98五笔
      comment = true,              -- 在所有文件类型的注释下开启
      filetype = { "markdown", },  -- 在指定文件类型下开启
      num_filter = true,           -- 数字筛选
      source_code = false,         -- 显示原码
      space_select_enable = false, -- 空格上屏开关
      space_select_enable_hint = "",             -- 空格上屏提示样式
      space_select_switch_mappings = "<C-Space>", -- 空格上屏开关按键映射
    })
  end
}

-- nvim-cmp 配置源
require('cmp').setup({
  sources = {
    { name = 'flypy' },
  },
})