GithubHelp home page GithubHelp logo

puddings233 / fcitx5-switcher.nvim Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 10 KB

A neovim plugin, automatically activate/inactivate fcitx5 in certain conditions.

License: Mozilla Public License 2.0

Lua 100.00%

fcitx5-switcher.nvim's Introduction

fcitx5-switcher.nvim

what is it

一个 neovim 插件,在特定条件下自动将 Fcitx5 输入法更改为中文输入法。

  • 功能1:当光标前的字符为中文字符(Unicode 4E00-9FFF)时,此时进入 insert mod 时,将自动切换为中文输入法。
  • 功能2:按下一个可以配置的按键,进入 insert mod 并自动切换为中文输入法。

Installation

使用lazy.nvim

require("lazy").setup({
  "puddings233/fcitx5-switcher.nvim",
  config = function()
    require("fcitx5-switcher-custom").setup({
      enable_manual = false,
      key = "nil",
      mod = "nil"
    })
  end
})

Configuration

通过修改安装选项,可以进行对功能2的自定义。

require("fcitx5-switcher-custom").setup({
  --- 是否启用功能2,可接受 "true", "false"
  enable_manual = false,
  --- 启用功能2的按键
  key = "nil",
  --- insert mod 的进入方式,可接受 "i", "a"
  mod = "nil"
})

Inspiration

Video

fcitx5-switcher.nvim's People

Contributors

puddings233 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.