Overview
A modern, high-performance, treesitter-aware Neovim plugin in pure Lua, built to perfect the Japanese text editing and keyboard workflow.
Updated Jul 11, 2026·1 min read
nihongo.nvim is a modern, high-performance, treesitter-aware Neovim plugin written in pure Lua. It's designed to perfect the Japanese text editing and keyboard workflow for developers.
It requires Neovim 0.9 or newer.
Features
- Japanese semantic motions. Jump by actual Japanese words, meaning nouns, particles, and verbs, using
w,b, ande, instead of skipping entire paragraphs. This is powered by a lightweight, zero dependency Lua morphological segmenter. - Context-aware IME auto-toggle. Automatically switches your input method state. It keeps the IME off while you write code, toggles it on when you enter comments, docstrings, or markdown files, and instantly resets it to ASCII when you leave insert mode.
- Romaji to Japanese fuzzy search. Integrates with Telescope or fzf-lua so you can search your codebase using romaji input, typing
kensakuto match検索.
Installation
Using lazy.nvim:
{
"takumiymd/nihongo.nvim",
dependencies = { "nvim-treesitter/nvim-treesitter" },
config = function()
require("nihongo").setup({})
end
}
Configuration
Here are the default settings:
require("nihongo").setup({
motion = {
enabled = true,
override_defaults = true,
},
ime = {
enabled = true,
default_ime = "1",
japanese_ime = "2",
},
})
Setting motion.override_defaults to false keeps the native w and b in place. The Japanese motions are still exported, so you can map them to keys of your own.
License
MIT. Created and maintained by Takumi.