Setup neorg plugin

This commit is contained in:
♥ Minnie ♥ 2025-06-26 19:26:50 +08:00
parent f42c1c8fdf
commit e9e7399c04
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
4 changed files with 57 additions and 1 deletions

View file

@ -46,6 +46,7 @@
# Markdown, Notes & Productivity # Markdown, Notes & Productivity
./plugins/notes/markdown-preview.nix ./plugins/notes/markdown-preview.nix
./plugins/notes/neorg.nix
./plugins/notes/render-markdown.nix ./plugins/notes/render-markdown.nix
./plugins/notes/todo-comments.nix ./plugins/notes/todo-comments.nix

View file

@ -6,7 +6,6 @@
showmode = false; showmode = false;
swapfile = false; swapfile = false;
clipboard = "unnamedplus"; clipboard = "unnamedplus";
conceallevel = 1;
updatetime=100; updatetime=100;
undofile = true; undofile = true;
splitright = true; splitright = true;
@ -17,6 +16,10 @@
shiftwidth = 2; shiftwidth = 2;
expandtab = true; expandtab = true;
# Required for neorg
conceallevel = 2;
foldlevel = 99;
# Using this config for sessionoptions is recommended: # Using this config for sessionoptions is recommended:
sessionoptions = "blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions"; sessionoptions = "blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions";
}; };

View file

@ -27,6 +27,10 @@
{ # VimTex { # VimTex
name = "vimtex"; name = "vimtex";
} }
{ # Neorg
name = "neorg";
}
]; ];
# Key mappings for the completion menu. # Key mappings for the completion menu.

View file

@ -0,0 +1,48 @@
{...}:{
plugins.neorg = {
enable = true;
# Settings for the Neorg plugin
settings = {
load = {
# Load the core modules for Neorg
"core.defaults" = {
__empty = null;
};
# Display markup as icons, not text
"core.concealer" = {
__empty = null;
};
# Handle collections of notes
"core.dirman" = {
config = {
workspaces = {
notes = "~/Notes";
};
default_workspace = "notes";
};
};
# Treesitter integration
"core.integrations.treesitter" = {
config = {
install_parsers = true;
configure_parsers = true;
};
};
# Enable completions with nvim-cmp
"core.completion" = {
config = {
engine = "nvim-cmp";
};
};
"core.integrations.nvim-cmp" = {
__empty = null;
};
};
};
};
}