GithubHelp home page GithubHelp logo

jaredmontoya / bikey.nvim Goto Github PK

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

Automatic keyboard layout switcher for Neovim

License: GNU General Public License v3.0

Lua 100.00%
lua nvim-plugin neovim keyboard-layout

bikey.nvim's Introduction

⌨️ bikey.nvim

Github top language GitHub code size in bytes

bikey.nvim is a Neovim plugin for people who got tired of switching to a latin keyboard layout and back each time they exit and enter insert mode.

It works by ensuring that your first keyboard layout is selected in normal mode and switching to the last keyboard layout that you used in insert mode when you enter insert mode again. Yout first keyboard layout in the list of keyboard layouts must be a latin keyboard layout that you prefer to use in normal mode(Ex: English) for this plugin to be useful.

demo.webm

🔌 Supported input methods

  • kde

📦 Installation

It is very hard to properly install and use luarocks while using lazy.nvim at the moment, but it is possible:

  • luarocks is only available for neovim nightly(0.10). On top of that, it does not install dbus_proxy correctly so you have to manually edit the directory structure of dbus_proxy to make it available to bikey.nvim. You can track this issue here: #3
  • nvim_rocks should work with neovim 0.9 but it requires PEP 668 to be disabled which is enabled by default for a good reason on all sane linux distributions that have python packages available for installation in their package manager.
-- Lazy
{
  "camspiers/luarocks",
    dependencies = {
      "rcarriga/nvim-notify", -- Optional dependency
    },
    opts = {
      rocks = { "dbus_proxy" } -- LuaRocks packages to install
    }
},
{
  "jaredmontoya/bikey.nvim",
    event = "VeryLazy",
    dependencies = {
      "camspiers/luarocks"
    }
}

-- Packer
use({
  "jaredmontoya/bikey.nvim",
    rocks = { 'dbus_proxy' }
})

📝 Requirements

  • Neovim >= 0.10 (Lazy + luarocks)
  • Neovim >= 0.9 (Packer or Lazy + nvim_rocks)
  • gobject introspection runtime
    • Arch
      • pacman -S gobject-introspection-runtime
    • Ubuntu
      • apt install libgirepository1.0-dev

bikey.nvim's People

Contributors

jaredmontoya avatar

Stargazers

Yuta Katayama 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.