Initial commit
commit
b21c5c20a6
@ -0,0 +1,64 @@
|
||||
# create by https://github.com/iamcco/coc-gitignore (Wed Apr 29 2020 15:01:50 GMT-0400 (Eastern Daylight Time))
|
||||
# Vim.gitignore:
|
||||
# Swap
|
||||
[._]*.s[a-v][a-z]
|
||||
[._]*.sw[a-p]
|
||||
[._]s[a-rt-v][a-z]
|
||||
[._]ss[a-gi-z]
|
||||
[._]sw[a-p]
|
||||
|
||||
# Session
|
||||
Session.vim
|
||||
Sessionx.vim
|
||||
|
||||
# Temporary
|
||||
.netrwhist
|
||||
*~
|
||||
# Auto-generated tag files
|
||||
tags
|
||||
# Persistent undo
|
||||
[._]*.un~
|
||||
|
||||
# create by https://github.com/iamcco/coc-gitignore (Wed Apr 29 2020 15:01:55 GMT-0400 (Eastern Daylight Time))
|
||||
# Lua.gitignore:
|
||||
# Compiled Lua sources
|
||||
luac.out
|
||||
|
||||
# luarocks build files
|
||||
*.src.rock
|
||||
*.zip
|
||||
*.tar.gz
|
||||
|
||||
# Object files
|
||||
*.o
|
||||
*.os
|
||||
*.ko
|
||||
*.obj
|
||||
*.elf
|
||||
|
||||
# Precompiled Headers
|
||||
*.gch
|
||||
*.pch
|
||||
|
||||
# Libraries
|
||||
*.lib
|
||||
*.a
|
||||
*.la
|
||||
*.lo
|
||||
*.def
|
||||
*.exp
|
||||
|
||||
# Shared objects (inc. Windows DLLs)
|
||||
*.dll
|
||||
*.so
|
||||
*.so.*
|
||||
*.dylib
|
||||
|
||||
# Executables
|
||||
*.exe
|
||||
*.out
|
||||
*.app
|
||||
*.i*86
|
||||
*.x86_64
|
||||
*.hex
|
||||
|
@ -0,0 +1,12 @@
|
||||
# About
|
||||
|
||||
This is a rewrite of [vim-libmodal](https://github.com/Iron-E/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.4.0, with the only alterations being _additions_ to the source code that have been made under the 2.x.y revision number.
|
||||
|
||||
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.4+
|
||||
* `vim-libmodal` is _not_ installed.
|
@ -0,0 +1,9 @@
|
||||
" PLACEHOLDER.
|
||||
function! libmodal#Enter(...) abort
|
||||
echo ''
|
||||
endfunction
|
||||
|
||||
" PLACEHOLDER.
|
||||
function! libmodal#Prompt(...) abort
|
||||
echo ''
|
||||
endfunction
|
@ -0,0 +1,16 @@
|
||||
--[[
|
||||
/*
|
||||
* MODULE
|
||||
*/
|
||||
]]
|
||||
local libmodal = require('src.libmodal')
|
||||
libmodal.mode = require('src.mode')
|
||||
libmodal.prompt = require('src.prompt')
|
||||
libmodal.utils = require('src.utils')
|
||||
|
||||
--[[
|
||||
/*
|
||||
* PUBLICIZE MODULE
|
||||
*/
|
||||
]]
|
||||
return libmodal
|
@ -0,0 +1,15 @@
|
||||
--[[
|
||||
/*
|
||||
* MODULE
|
||||
*/
|
||||
]]
|
||||
local libmodal = {}
|
||||
|
||||
-- TODO
|
||||
|
||||
--[[
|
||||
/*
|
||||
* PUBLICIZE MODULE
|
||||
*/
|
||||
]]
|
||||
return libmodal
|
@ -0,0 +1,31 @@
|
||||
--[[
|
||||
/*
|
||||
* IMPORTS
|
||||
*/
|
||||
]]
|
||||
local libmodal = require('src.libmodal')
|
||||
|
||||
--[[
|
||||
/*
|
||||
* MODULE
|
||||
*/
|
||||
]]
|
||||
libmodal.mode = {}
|
||||
|
||||
--[[SUMMARY: Enter a mode.
|
||||
|
||||
PARAMETERS:
|
||||
`args[1]` => the mode name.
|
||||
`args[2]` => the mode callback, or mode combo table.
|
||||
`args[3]` => optional exit supresion flag.
|
||||
]]
|
||||
function libmodal.mode.enter(...)
|
||||
local args = {...}
|
||||
end
|
||||
|
||||
--[[
|
||||
/*
|
||||
* PUBLICIZE MODULE
|
||||
*/
|
||||
]]
|
||||
return libmodal.mode
|
@ -0,0 +1,30 @@
|
||||
--[[
|
||||
/*
|
||||
* IMPORTS
|
||||
*/
|
||||
]]
|
||||
local libmodal = require('src.libmodal')
|
||||
|
||||
--[[
|
||||
/*
|
||||
* MODULE
|
||||
*/
|
||||
]]
|
||||
libmodal.prompt = {}
|
||||
|
||||
--[[SUMMARY: Enter a prompt.
|
||||
|
||||
PARAMETERS:
|
||||
`args[1]` => the prompt name.
|
||||
`args[2]` => the prompt callback, or mode command table.
|
||||
]]
|
||||
function libmodal.prompt.enter(...)
|
||||
local args = {...}
|
||||
end
|
||||
|
||||
--[[
|
||||
/*
|
||||
* PUBLICIZE MODULE
|
||||
*/
|
||||
]]
|
||||
return libmodal.prompt
|
@ -0,0 +1,20 @@
|
||||
--[[
|
||||
/*
|
||||
* IMPORTS
|
||||
*/
|
||||
]]
|
||||
local libmodal = require('src.libmodal')
|
||||
|
||||
--[[
|
||||
/*
|
||||
* MODULE
|
||||
*/
|
||||
]]
|
||||
libmodal.utils = {}
|
||||
|
||||
--[[
|
||||
/*
|
||||
* PUBLICIZE MODULE
|
||||
*/
|
||||
]]
|
||||
return libmodal.utils
|
@ -0,0 +1,17 @@
|
||||
if exists('g:loaded_libmodal')
|
||||
finish
|
||||
endif
|
||||
let g:loaded_libmodal = 1
|
||||
|
||||
if !exists('g:libmodalTimeouts')
|
||||
let g:libmodalTimeouts = &timeout
|
||||
endif
|
||||
|
||||
" ************************************************************
|
||||
" * User Configuration
|
||||
" ************************************************************
|
||||
|
||||
" The default highlight groups (for colors) are specified below.
|
||||
" Change these default colors by defining or linking the corresponding highlight group.
|
||||
highlight default link LibmodalPrompt ModeMsg
|
||||
highlight default link LibmodalStar StatusLine
|
Loading…
Reference in New Issue