https://github.com/tani/vim-artemis
Compatibility layer for Vim/ Neovim configuration in Lua
https://github.com/tani/vim-artemis
Last synced: about 2 months ago
JSON representation
Compatibility layer for Vim/ Neovim configuration in Lua
- Host: GitHub
- URL: https://github.com/tani/vim-artemis
- Owner: tani
- License: mit
- Created: 2023-01-04T00:26:19.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T05:20:33.000Z (over 1 year ago)
- Last Synced: 2025-04-15T19:09:30.781Z (about 2 months ago)
- Language: Lua
- Size: 25.4 KB
- Stars: 24
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vim-artemis
vim-artemis is a Lua module for the compatibility between Vim and Neovim.
We aim at covering the Lua API for writing the Vim/ Neovim configuration
file in the single Lua file. For the list of the funcitons, see `doc/artemis.txt`.## Example
```lua
-- You can load the artemis as follows.
local vimx = require 'artemis'-- You can set a value to the variable
vimx.g.tex_flavor = 'latex'-- You can set a value to the part of the dictionary
vimx.g.lightline.colorscheme = 'gruvbox_material'-- You can call Vim command naturally
vimx.cmd.packadd 'vim-jetpack'require('jetpack.packer').startup(function(use)
use {
'cohama/lexima.vim',
config = function()
-- fn proxies arguments using artemis.cast
vimx.fn['lexima#add_rule'] {
at = ';->\\%#',
input = '\\rightarrow'
}
-- You can also chain with the dot instead of the sharp
vimx.fn.lexima.add_rule {
at = ';->\\%#',
input = '\\rightarrow'
}
end
}
end)
```