refator(nvim): move neodev config to seperate file

nixos
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;
conf = /* 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,
})
'';
conf = readFile ./neodev-nvim.lua;
}
];
}

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,
})