From bd6aa3808d638fc2b9b9776a11d27d05f35374e5 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Mon, 6 Feb 2023 01:09:12 +0300 Subject: [PATCH] feat: notetaking --- flake.lock | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ flake.nix | 35 +++++++++++++++++++++++++--- 2 files changed, 100 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index 9987a3d..d32c17c 100644 --- a/flake.lock +++ b/flake.lock @@ -814,6 +814,22 @@ "type": "github" } }, + "obsidian-nvim": { + "flake": false, + "locked": { + "lastModified": 1675366609, + "narHash": "sha256-QUAic7yakCXNhYqeaxD+86dIAQzW/pJYN7Y69uDB3xk=", + "owner": "epwalsh", + "repo": "obsidian.nvim", + "rev": "30f45ae3ef78b67d9eae16adfbaaf86089bd8855", + "type": "github" + }, + "original": { + "owner": "epwalsh", + "repo": "obsidian.nvim", + "type": "github" + } + }, "onedark": { "flake": false, "locked": { @@ -830,6 +846,22 @@ "type": "github" } }, + "orgmode-nvim": { + "flake": false, + "locked": { + "lastModified": 1675278893, + "narHash": "sha256-augdRQCNMJe7Z4D8zjOYP/WjgLn2GHMc1QjVmuI17gY=", + "owner": "nvim-orgmode", + "repo": "orgmode", + "rev": "7ddbdc0741fdc90f73faa17fb332bc8700acadbf", + "type": "github" + }, + "original": { + "owner": "nvim-orgmode", + "repo": "orgmode", + "type": "github" + } + }, "plenary-nvim": { "flake": false, "locked": { @@ -930,19 +962,23 @@ "nvim-treesitter-context": "nvim-treesitter-context", "nvim-ts-autotag": "nvim-ts-autotag", "nvim-web-devicons": "nvim-web-devicons", + "obsidian-nvim": "obsidian-nvim", "onedark": "onedark", + "orgmode-nvim": "orgmode-nvim", "plenary-nvim": "plenary-nvim", "registers": "registers", "rnix-lsp": "rnix-lsp", "rust-tools": "rust-tools", "scrollbar-nvim": "scrollbar-nvim", "sqls-nvim": "sqls-nvim", + "tabular": "tabular", "telescope": "telescope", "tidalcycles": "tidalcycles", "todo-comments": "todo-comments", "tokyonight": "tokyonight", "trouble": "trouble", "venn-nvim": "venn-nvim", + "vim-markdown": "vim-markdown", "vim-vsnip": "vim-vsnip", "which-key": "which-key" } @@ -1037,6 +1073,22 @@ "type": "github" } }, + "tabular": { + "flake": false, + "locked": { + "lastModified": 1550598128, + "narHash": "sha256-irolBA/m3YIaezl+90h5G+xUOpad+3u44uJqDs4JCUs=", + "owner": "godlygeek", + "repo": "tabular", + "rev": "339091ac4dd1f17e225fe7d57b48aff55f99b23a", + "type": "github" + }, + "original": { + "owner": "godlygeek", + "repo": "tabular", + "type": "github" + } + }, "telescope": { "flake": false, "locked": { @@ -1188,6 +1240,22 @@ "type": "github" } }, + "vim-markdown": { + "flake": false, + "locked": { + "lastModified": 1669286150, + "narHash": "sha256-5q/s/ypZku4Iviq+eGip6hSWs0Ei3FrnX3IL3WV/FHw=", + "owner": "preservim", + "repo": "vim-markdown", + "rev": "df4be8626e2c5b2a42eb60e1f100fce469b81f7d", + "type": "github" + }, + "original": { + "owner": "preservim", + "repo": "vim-markdown", + "type": "github" + } + }, "vim-tidal-src": { "flake": false, "locked": { diff --git a/flake.nix b/flake.nix index cf9ad60..4b8c299 100644 --- a/flake.nix +++ b/flake.nix @@ -122,8 +122,8 @@ gitsigns.enable = true; }; vim.minimap = { - minimap-vim.enable = true; # FIXME: this plugin has a dependency that needs to be installed - codewindow.enable = false; + minimap-vim.enable = false; + codewindow.enable = true; # lighter, faster, and uses lua for configuration }; vim.dashboard = { dashboard-nvim.enable = false; @@ -135,7 +135,12 @@ vim.utility = { colorizer.enable = true; icon-picker.enable = true; - venn-nvim.enable = false; # FIXME: throws an error when the command is ran manually + venn-nvim.enable = false; # FIXME throws an error when its commands are ran manually + }; + + vim.notes = { + obsidian.enable = false; # FIXME neovim fails to build if obsidian is enabled + orgmode.enable = true; }; }; }; @@ -511,6 +516,18 @@ flake = false; }; + # Note-taking + + obsidian-nvim = { + url = "github:epwalsh/obsidian.nvim"; + flake = false; + }; + + orgmode-nvim = { + url = "github:nvim-orgmode/orgmode"; + flake = false; + }; + # Dependencies plenary-nvim = { # (required by crates-nvim) @@ -523,5 +540,17 @@ url = "github:stevearc/dressing.nvim"; flake = false; }; + + vim-markdown = { + # (required by obsidian-nvim) + url = "github:preservim/vim-markdown"; + flake = false; + }; + + tabular = { + # (required by vim-markdown) + url = "github:godlygeek/tabular"; + flake = false; + }; }; }