Replies: 1 comment 1 reply
-
Have you check out https://github.com/folke/lazydev.nvim? In any case, you can simply just ignore the addon stuff (primarily is a VSCode thing) and simply set the {
// your_addon/library/ contains all the *.lua definition files
"workspace.library": ["path/to/your_addon/library"]
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I am trying to setup a project with addons type definitions localised in
./addons
from the project root. I first addedlua-cjson-definitions
with the following command:No problem here. I also put the following in my
.luarc.json
:(I also tried putting an absolute path for the addons)
But when I start neovim on a file with
local cjson = require("cjson")
, no prompt for setting up the library, and no type checking... I tried with the following minimal config, without success:While the language server works, gives diagnostic, and seems to react to the other settings in the
.luarc.json
, I still cannot get my addon to work. Any ideas?Beta Was this translation helpful? Give feedback.
All reactions