mirror of
https://github.com/neovim/neovim.git
synced 2026-01-20 04:01:15 +10:00
- Complete function: There was lots of unnecessary C code for the complete function, therefore moving it to Lua and use all the plumbing we have in place to retrieve the results. - Moving the module: It's important we keep nvim lua modules name spaced, avoids conflict with plugins, luarocks, etc.
12 lines
220 B
Lua
12 lines
220 B
Lua
local M = {}
|
|
|
|
M.check = function()
|
|
vim.health.report_start("report 1")
|
|
vim.health.report_ok("everything is fine")
|
|
vim.health.report_warn("About to add a number to nil")
|
|
local a = nil + 2
|
|
return a
|
|
end
|
|
|
|
return M
|