mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-12 18:24:35 +02:00
plugins/neorg: refactor + test + neorg-telescope
This commit is contained in:
parent
6e0a5ba7ec
commit
4a9a3c1f6c
2 changed files with 147 additions and 55 deletions
75
tests/test-sources/plugins/utils/neorg.nix
Normal file
75
tests/test-sources/plugins/utils/neorg.nix
Normal file
|
@ -0,0 +1,75 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.neorg.enable = true;
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins = {
|
||||
# Treesitter is required when using the "core.defaults" module.
|
||||
treesitter.enable = true;
|
||||
|
||||
neorg = {
|
||||
enable = true;
|
||||
|
||||
lazyLoading = false;
|
||||
logger = {
|
||||
plugin = "neorg";
|
||||
useConsole = true;
|
||||
highlights = true;
|
||||
useFile = true;
|
||||
level = "warn";
|
||||
modes = {
|
||||
trace = {
|
||||
hl = "Comment";
|
||||
level = "trace";
|
||||
};
|
||||
debug = {
|
||||
hl = "Comment";
|
||||
level = "debug";
|
||||
};
|
||||
info = {
|
||||
hl = "None";
|
||||
level = "info";
|
||||
};
|
||||
warn = {
|
||||
hl = "WarningMsg";
|
||||
level = "warn";
|
||||
};
|
||||
error = {
|
||||
hl = "ErrorMsg";
|
||||
level = "error";
|
||||
};
|
||||
fatal = {
|
||||
hl = "ErrorMsg";
|
||||
level = 5;
|
||||
};
|
||||
};
|
||||
floatPrecision = 0.01;
|
||||
};
|
||||
|
||||
modules = {
|
||||
"core.defaults" = {__empty = null;};
|
||||
"core.dirman" = {
|
||||
config = {
|
||||
workspaces = {
|
||||
work = "~/notes/work";
|
||||
home = "~/notes/home";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
telescope-integration = {
|
||||
plugins = {
|
||||
telescope.enable = false;
|
||||
|
||||
neorg = {
|
||||
enable = false;
|
||||
modules."core.integrations.telescope".__empty = null;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue