feat(lua): add vim.spell (#16620)

This commit is contained in:
Lewis Russell
2021-12-25 19:36:56 +00:00
committed by GitHub
parent 2ae63161e8
commit e11a44aa22
5 changed files with 201 additions and 0 deletions

View File

@@ -30,6 +30,7 @@
#include "nvim/lua/stdlib.h"
#include "nvim/lua/treesitter.h"
#include "nvim/lua/xdiff.h"
#include "nvim/lua/spell.h"
#include "nvim/macros.h"
#include "nvim/map.h"
#include "nvim/memline.h"
@@ -518,6 +519,10 @@ void nlua_state_add_stdlib(lua_State *const lstate)
lua_pushcfunction(lstate, &nlua_xdl_diff);
lua_setfield(lstate, -2, "diff");
// vim.spell
luaopen_spell(lstate);
lua_setfield(lstate, -2, "spell");
lua_cjson_new(lstate);
lua_setfield(lstate, -2, "json");
}