refator(nvim): move neodev config to seperate file
This commit is contained in:
parent
55d8df866b
commit
d7cdc05b3d
2 changed files with 9 additions and 10 deletions
|
@ -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,
|
|
||||||
})
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
8
modules/programs/nvim/plugins/neodev-nvim.lua
Normal file
8
modules/programs/nvim/plugins/neodev-nvim.lua
Normal 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,
|
||||||
|
})
|
Loading…
Reference in a new issue