Skip to content

mtamc/rikai.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rikai.nvim

A Neovim plugin for looking up Japanese dictionary definitions at the cursor position. Minimalistic port of Rikaikun by melink14.

1775382917

Installation

Install just like any other plugin e.g. using vim-plug:

Plug 'mtamc/rikai.nvim'

Usage

  • <leader>rk - Look up Japanese word at cursor (normal mode)
  • :Rikai - Look up Japanese word at cursor

Configuration

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'
  }
})
EOF

To use a different keybinding:

" Unset the default <leader>rk binding
nunmap <leader>rk

" Set your own keybinding
nnoremap <your-key> :Rikai<CR>

About

Port of rikaikun for NeoVim - Look up Japanese definitions under cursor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages