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
bug: neodev not working with mason-lspconfig #180
Comments
I also recently (aka up until just now) had the same/a similar problem. |
Could you share how to set |
Sure! All I put into the {
"$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
"runtime.version": "LuaJIT"
} The |
I've had the same issue recently and the above |
Using Previously, I managed to make neodev work in a symlinked setup with this trick: require("neodev").setup({
override = function(root_dir, library)
-- Path-based override activation helps neodev work with symlinked dotfiles setup
if root_dir:find("nvim") or root_dir:find("dotfiles") then
library.enabled = true
library.plugins = true
library.types = true
library.runtime = true
end
end
}) Now, when Has anyone overcome this issue? The best would be to fix this problem altogether and revert to how it used to be when we did not need to provide an extra |
I have this exact issue, however the .luarc.json doesnt seem to be making a difference |
for me neodev works only if i specify it as a dependency for lspconfig, mason, and mason-lsp "neovim/nvim-lspconfig",
dependencies = {
"williamboman/mason.nvim",
"williamboman/mason-lspconfig.nvim",
{ "folke/neodev.nvim", opts = {} },
}, if i do anything else, for some reason neodev does not work. If you want, give it a try |
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.9.5
Operating system/version
macOS 14
Describe the bug
I cannot seem to get
neodev
working in my config directory, even with a super minimal config that installslua_ls
withmason-lspconfig
... I getUndefined global "vim"
warnings whenever I try to use thevim
object...Steps To Reproduce
~/.config/nvim/repro.lua
nvim -u ~/.config/nvim/repro.lua ~/.config/nvim/repro.lua
lua-language-server
(use:Mason
to see the progress)Expected Behavior
This simple config to work with Neodev.
Repro
The text was updated successfully, but these errors were encountered: