mirror of
https://github.com/neovim/neovim.git
synced 2026-07-30 12:28:06 +00:00
feat(lua): add vim.spell (#16620)
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user