nix-community.nixvim/tests/test-sources/plugins/by-name/lazydev/default.nix
2025-01-13 15:34:09 +00:00

56 lines
1.1 KiB
Nix

{
empty = {
plugins.lazydev.enable = true;
};
defaults = {
plugins = {
cmp.enable = true;
lazydev = {
enable = true;
settings = {
enabled.__raw = ''
function(root_dir)
return vim.g.lazydev_enabled == nil and true or vim.g.lazydev_enabled
end
'';
integrations = {
lspconfig = true;
cmp = true;
coq = false;
};
library.__raw = "{}";
runtime.__raw = "vim.env.VIMRUNTIME";
};
};
lsp.enable = true;
};
};
example = {
plugins.lazydev = {
enable = true;
settings = {
enabled.__raw = ''
function(root_dir)
return vim.g.lazydev_enabled == nil and true or vim.g.lazydev_enabled
end
'';
library = [
"~/projects/my-awesome-lib"
"lazy.nvim"
"LazyVim"
{
path = "LazyVim";
words = [ "LazyVim" ];
}
];
runtime.__raw = "vim.env.VIMRUNTIME";
};
};
};
}