Provides a very simple input method similar to Emacs' TeX input method (used in the agda-mode, for example) for Kakoune.
This extension makes use of perl 5 internally, so you have to have perl in your $PATH for it to work.
With plug.kak
plug "mesabloo/tex-input.kak" config %{
tex-input-setup
}Without plug.kak
Add rc/tex-input.kak to your autoloads or source it from your kakrc, and call tex-input-setup in your kakrc.
tex-input-enableandtex-input-disablerespectively enable or disable the LaTeX input method in the current buffer.tex-input-toggletoggles on/off the LaTeX input method in the current buffer. This can be mapped to a user mode for example like this:map global user t ': tex-input-toggle<ret>'
You can extend the dictionary of available LaTeX by passing additional parameters to the tex-input-setup.
Those parameters must be of the form "<latex command>:<unicode character>" for them to work.
For example, one may call tex-input-setup "%:%" to add \% to the list of recognized commands.
Both literal : and \ need to be escaped when binding a new latex command.
For example, /\\:∧ is a valid specification, while /\:∧ is not.