refator(nvim): move neodev config to seperate file

This commit is contained in:
Moritz Böhme 2023-08-12 09:43:13 +02:00
parent 55d8df866b
commit d7cdc05b3d
Signed by: moritz
GPG key ID: 970C6E89EB0547A9
2 changed files with 9 additions and 10 deletions

View file

@ -132,16 +132,7 @@ with builtins;
} }
{ {
plugin = neodev-nvim; plugin = neodev-nvim;
conf = /* lua */ '' conf = readFile ./neodev-nvim.lua;
require("neodev").setup({
override = function(root_dir, library)
if root_dir:find("/home/moritz/.dotfiles/", 1, true) == 1 then
library.enabled = true
library.plugins = true
end
end,
})
'';
} }
]; ];
} }

View file

@ -0,0 +1,8 @@
require("neodev").setup({
override = function(root_dir, library)
if root_dir:find("/home/moritz/.dotfiles/", 1, true) == 1 then
library.enabled = true
library.plugins = true
end
end,
})