Skip to content

Busted, custom assertions and Undefined field warning #3118

Answered by HiPhish
HiPhish asked this question in Q&A
Discussion options

You must be logged in to vote

I think I got it now. In the editor configuration I have set runtime.path to ["lua/?.lua", "lua/?/init.lua"], because in Neovim Lua modules are stored in the lua directory. However, this is not true for the addons and the custom meta file. Adding "?.lua" to the .luarc.json file does the trick.

{
	"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
	"runtime.path": ["?.lua"],
	"workspace.ignoreDir": ["test/xdg"],
	"workspace.ignoreSubmodules": false,
	"workspake.userThirdParty": [
		".luals/addons"
	],
	"workspace.library": [
		".luals/addons/busted/library",
		".luals/addons/luassert/library",
		".luals/meta"
	]
}

Finally no more yellow undercurls. …

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@tomlau10
Comment options

@HiPhish
Comment options

@HiPhish
Comment options

@HiPhish
Comment options

Answer selected by HiPhish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants