This repository was archived by the owner on Jul 6, 2024. It is now read-only.
Replies: 1 comment
-
You can make it enabled for any project by using the use {
"folke/neodev.nvim",
config = function()
require("neodev").setup {
override = function(root_dir, library)
-- enable for any project so we can use it in .nvim.lua files
library.enabled = true
library.plugins = true
end,
}
end
} To save some work on non-lua projects, you could probably have it check for lua files in the root_dir and only enable it if there are. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have this line in my
init.lua
:This lets me set project specific key maps, autocommands etc.
However, Neodev doesn't set up the Lua LSP for these files, so I don't get auto completions, which makes these files annoying to edit.
How would I go about getting Neodev to start up when I open any
.nvimrc.lua
file?Alternatively, I don't really use Lua for anything other than Neovim config, could I configure Neodev to run for all Lua files?
Beta Was this translation helpful? Give feedback.
All reactions