(Here is the Japanese document)
Displays the state of skkeleton in a
popup window for Vim/Neovim.
You can use your preferred plugin manager.
Register your configuration by executing skkeleton_state_popup#config()
, and
then skkeleton_state_popup#enable()
to activate it. You can set the strings that
displays in a popup window and the option of the window with
skkeleton_state_popup#config
. You can stop the popup by executing
skkeleton_state_popup#disable()
whenever you like.
In Vim, you can specify the popup window options, which is used as an argument
when executing popup_create()
.
In Neovim, you can specify the window options, which is used as an argument when
executing nvim_open_win()
. Note that the option of the function requires some
keys. You need to specify them. The keys width
and height
are calculated and
specified by the plugin, so you do not need to do about them.
Here are examples of the configurations. For more information, read the doc. # WIP
call skkeleton_state_popup#config(#{
\ labels: {
\ 'input': #{hira: 'あ', kata: 'ア', hankata: 'カナ', zenkaku: 'A'},
\ 'input:okurinasi': #{hira: '▽▽', kata: '▽▽', hankata: '▽▽', abbrev: 'ab'},
\ 'input:okuriari': #{hira: '▽▽', kata: '▽▽', hankata: '▽▽'},
\ 'henkan': #{hira: '▼▼', kata: '▼▼', hankata: '▼▼', abbrev: 'ab'},
\ 'latin': '_A',
\ },
\ opts: #{pos: 'botleft', line: 'cursor+1', col: 'cursor', highlight: 'WildMenu'},
\ })
call skkeleton_state_popup#run()
call skkeleton_state_popup#config(#{
\ labels: {
\ 'input': #{hira: "あ", kata: 'ア', hankata: 'カナ', zenkaku: 'A'},
\ 'input:okurinasi': #{hira: '▽▽', kata: '▽▽', hankata: '▽▽', abbrev: 'ab'},
\ 'input:okuriari': #{hira: '▽▽', kata: '▽▽', hankata: '▽▽'},
\ 'henkan': #{hira: '▼▼', kata: '▼▼', hankata: '▼▼', abbrev: 'ab'},
\ 'latin': '_A',
\ },
\ opts: #{relative: 'cursor', col: 0, row: 1, anchor: 'NW', style: 'minimal'},
\ })
call skkeleton_state_popup#run()
MIT Licence