You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Go to file
Iron-E 7d1d39f915
Merge branch 'feature/001--lua-runtime'
2 years ago
autoload ref: use Neovim 0.5 3 years ago
doc perf: don't make local copies of global `vim` module 3 years ago
examples perf: don't make local copies of global `vim` module 3 years ago
lua/libmodal perf: don't make local copies of global `vim` module 3 years ago
plugin perf: don't make local copies of global `vim` module 3 years ago
.gitignore Update imports 4 years ago
LICENSE.md Add license 4 years ago
README.md Merge branch 'feature/001--lua-runtime' 2 years ago

README.md

About

This is a rewrite of vim-libmodal using Neovim's Lua API.

Unfortunately, during vim-libmodal's development several problems with Vimscript became apparent. Because of this, I have decided to rewrite it using Lua. This project aims to be cross-compatable with vim-libmodal version 2.X.Y, with the only alterations being additions to the source code that have been made under the 2.x.y revision number.

funcref() cannot be used in libmodal#Enter or libmodal#Prompt, so nvim-libmodal is mostly compatable, but not completely.

  • See |libmodal-usage| for more details.

Note that cross-compatability does not mean that vim-libmodal and nvim-libmodal can be installed at the same time— as a matter of fact, they are developed specifically to replace each other for specific platforms. If you use Vim, use vim-libmodal. If you use Neovim, use nvim-libmodal. If you are a plugin creator, all code that works for vim-libmodal will work with nvim-libmodal, but the reverse is not true.

Requirements

  • Neovim 0.5+.
  • vim-libmodal is not installed.

Usage

The following plugins have been constructed using nvim-libmodal:

The following samples have been constructed using nvim-libmodal:

See vim-libmodal and the docs for more information.

Statusline

You can add libmodal modes to your status line by using feline.nvim or galaxyline.nvim or . You can find my configuration for feline.nvim here and galaxyline.nvim here— both of which leverage nvim-libmodal's in the statusbar.