aboutsummaryrefslogtreecommitdiffstats
path: root/hm
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--hm/soispha/conf/nvim/plugins/default.nix1
-rw-r--r--hm/soispha/conf/nvim/plugins/neorg/default.nix43
-rw-r--r--hm/soispha/conf/nvim/plugins/nvim-cmp/default.nix21
3 files changed, 58 insertions, 7 deletions
diff --git a/hm/soispha/conf/nvim/plugins/default.nix b/hm/soispha/conf/nvim/plugins/default.nix
index 2de2c7be..d2486166 100644
--- a/hm/soispha/conf/nvim/plugins/default.nix
+++ b/hm/soispha/conf/nvim/plugins/default.nix
@@ -3,6 +3,7 @@
#./lsp-progress-nvim
./colorscheme
./comment-nvim
+ ./neorg
./femaco
./goto-preview
./harpoon
diff --git a/hm/soispha/conf/nvim/plugins/neorg/default.nix b/hm/soispha/conf/nvim/plugins/neorg/default.nix
new file mode 100644
index 00000000..74ab332d
--- /dev/null
+++ b/hm/soispha/conf/nvim/plugins/neorg/default.nix
@@ -0,0 +1,43 @@
+{...}: {
+ programs.nixvim.plugins.neorg = {
+ enable = true;
+ lazyLoading = true;
+
+ modules = {
+ "core.defaults" = {
+ __empty = null;
+ };
+ "core.metagen".config = {
+ type = "auto";
+ };
+ "core.journal".config = {
+ workspace = "journal";
+ };
+ "core.keybinds".config = {
+ hook = {
+ __raw = ''
+ function(keybinds)
+ -- remap the looking glas to the same key, femaco is also mapped to.
+ keybinds.remap_event("norg", "n", "<space>cc", "core.looking-glass.magnify-code-block")
+
+ keybinds.remap_event("norg", "n", "<C-s>", "core.integrations.telescope.find_linkable")
+ keybinds.remap_event("norg", "i", "<C-i>", "core.integrations.telescope.insert_link")
+ end,
+ '';
+ };
+ };
+ "core.completion".config = {
+ engine = "nvim-cmp";
+ };
+ "core.concealer".config = {};
+ "core.dirman".config = {
+ workspaces = {
+ general = "~/notes/general";
+ journal = "~/notes/journal";
+ };
+ };
+ "core.export".config = {};
+ "core.ui.calendar".config = {};
+ };
+ };
+}
diff --git a/hm/soispha/conf/nvim/plugins/nvim-cmp/default.nix b/hm/soispha/conf/nvim/plugins/nvim-cmp/default.nix
index 2fd35272..ceb09182 100644
--- a/hm/soispha/conf/nvim/plugins/nvim-cmp/default.nix
+++ b/hm/soispha/conf/nvim/plugins/nvim-cmp/default.nix
@@ -1,7 +1,12 @@
-{...}: {
- programs.nixvim.plugins.nvim-cmp = {
+{config, ...}: {
+ programs.nixvim.plugins.nvim-cmp = let
+ neorg_source =
+ if config.programs.nixvim.plugins.neorg.modules."core.completion".config.engine == "nvim-cmp"
+ then [{name = "neorg";}]
+ else [];
+ in {
/*
- TODO:; integrate this:
+ TODO: integrate this:
```lua
enabled = {
function()
@@ -39,9 +44,11 @@
snippet.expand = "luasnip";
- sources = [
- {name = "nvim_lsp";}
- {name = "luasnip";}
- ];
+ sources =
+ [
+ {name = "nvim_lsp";}
+ {name = "luasnip";}
+ ]
+ ++ neorg_source;
};
}