tani / vim-artemis

Compatibility layer for Vim/ Neovim configuration in Lua

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

-- 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)

About

Compatibility layer for Vim/ Neovim configuration in Lua

License:MIT License


Languages

Language:Lua 100.0%