Skip to content

jaredmontoya/bikey.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⌨️ 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

About

Automatic keyboard layout switcher for Neovim

Topics

Resources

License

Stars

Watchers

Forks

Languages