A Neovim plugin for looking up Japanese dictionary definitions at the cursor position. Minimalistic port of Rikaikun by melink14.
Install just like any other plugin e.g. using vim-plug:
Plug 'mtamc/rikai.nvim'<leader>rk- Look up Japanese word at cursor (normal mode):Rikai- Look up Japanese word at cursor
lua << EOF
require('rikai').setup({
-- Maximum number of dictionary entries to show
max_entries = 7,
-- Visually select the longest match
select_match = true,
-- Floating window options
float_opts = {
relative = 'cursor', -- 'editor' | 'win' | 'cursor' | 'mouse'
row = 1, -- vertical offset
col = 0, -- horizontal offset
width = 60,
height = 20,
style = 'minimal', -- currently no other value supported
border = 'rounded', -- 'none' | 'single' | 'double' | 'rounded' | 'solid' | 'shadow'
}
})
EOFTo use a different keybinding:
" Unset the default <leader>rk binding
nunmap <leader>rk
" Set your own keybinding
nnoremap <your-key> :Rikai<CR>