Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lua warning for Scala config #419

Open
marekrehora opened this issue Jul 29, 2023 · 1 comment
Open

Lua warning for Scala config #419

marekrehora opened this issue Jul 29, 2023 · 1 comment

Comments

@marekrehora
Copy link

Hey,

I was trying out LunarVim to use as an alternative for Intellij and following the docs for Scala I was getting this warning:

WARN ] lvim: "Invalid configuration: /Users/rehora/.config/lvim/config.lua:40: attempt to index global 'dap' (a nil value)" file="[C]", line=-1

I was able to fix it by adding this line before the config from docs:
local dap = require("dap"

But I am very new to nvim and lua so I am not sure if it is correct solution and therefore I did not do a PR for the docs.

@LostNeophyte
Copy link
Member

the example in the docs looks incorrect, it should be

lvim.builtin.dap.on_config_done = function(dap)
-- use dap here
end

you can require dap, you need to do it in a callback function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants