feat(nvim): neodev -> lazydev
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2025-01-07 22:24:24 -05:00
parent 392a2038f7
commit 248d04c2b0

View file

@ -15,7 +15,7 @@ in {
neovim = {
plugins = [
{
plugin = pkgs.vimPlugins.neodev-nvim;
plugin = pkgs.vimPlugins.lazydev-nvim;
type = "lua";
config =
# lua
@ -38,14 +38,11 @@ in {
end,
});
-- IMPORTANT: make sure to setup neodev BEFORE lspconfig
require("neodev").setup({
override = function(root_dir, library)
if root_dir:find('${flakeEnv}', 1, true) == 1 then
library.enabled = true;
library.plugins = true;
end
end,
require('lazydev').setup({
library = {
-- Load luvit types when the `vim.uv` word is found
{ path = '${pkgs.vimPlugins.luvit-meta}/library', words = { 'vim%.uv' } },
},
});
require('lspconfig').lua_ls.setup({