diff --git a/README.md b/README.md index 4acb17d..2d4f3ff 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ Configuration via Fennel. Tuned for s-expressions and prose. - Completion and snippets via [nvim-cmp](https://github.com/hrsh7th/nvim-cmp) - [vim-markdown](https://github.com/preservim/vim-markdown) - s-expression power editing via [nvim-sexp](https://github.com/guns/vim-sexp), [for regular people](https://github.com/tpope/vim-sexp-mappings-for-regular-people) +- [Obsidian](https://github.com/epwalsh/obsidian.nvim) powered notes. ## Dependencies To build some of the packages you will need: diff --git a/fnl/personalize.fnl b/fnl/personalize.fnl index d724160..9449ead 100644 --- a/fnl/personalize.fnl +++ b/fnl/personalize.fnl @@ -43,15 +43,11 @@ (nmap : :gt "Go to next tab (cyclical)") (tmap : "gt" "Go to next tab (cyclical)") - (nmap :jt - #(vim.cmd (.. "vsplit ~/TDC-Obsidian/Journal/" - (os.date "%Y") "/" - (os.date "%m") "/" - (os.date "%Y-%m-%d") - ".md" - "|$") - "Open today's journal")) + (nmap :oo + #(vim.cmd (.. "cd ~/TDC-Obsidian/|edit WIP.md") + "Open Obsidian")) + (nmap :p ":Telescope commands" "Search commands") (nmap :o ":Telescope find_files" "Search filenames in :pwd") (nmap :b ":Telescope buffers" "Search open buffers") (nmap :s ":Telescope live_grep" "Search current buffer") diff --git a/fnl/plugins.fnl b/fnl/plugins.fnl index 2f3ff96..82e5340 100644 --- a/fnl/plugins.fnl +++ b/fnl/plugins.fnl @@ -31,6 +31,16 @@ " && cmake --build build --config Release" " && cmake --install build --prefix build")} "https://github.com/xiyaowong/telescope-emoji.nvim"]} + {:url "https://github.com/epwalsh/obsidian.nvim" + :version "v3.7.1" + :ft "markdown" + :opts {:workspaces [{:name "TDC-Obsidian" + :path "/home/specter/TDC-Obsidian"}] + :daily_notes {:folder "Journal/" + :date_format "%Y/%m/%Y-%m-%d"} + :disable_frontmatter true + :ui { + :enable false}}} "https://github.com/sainnhe/everforest" "https://github.com/tamton-aquib/duck.nvim"])) diff --git a/lazy-lock.json b/lazy-lock.json index 789e889..4739cc8 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -17,6 +17,7 @@ "nvim-cmp": { "branch": "main", "commit": "04e0ca376d6abdbfc8b52180f8ea236cbfddf782" }, "nvim-lspconfig": { "branch": "master", "commit": "16295b79410f131c4fa7870c663b4ace6a761fb2" }, "nvim-treesitter": { "branch": "master", "commit": "7ff51f53b0efb6228df2e8539b51bb2e737b77f3" }, + "obsidian.nvim": { "branch": "main", "commit": "b136c1545fb9c4888d37ba482bfc77f222bbdf52" }, "plenary.nvim": { "branch": "master", "commit": "f7adfc4b3f4f91aab6caebf42b3682945fbc35be" }, "telescope-emoji.nvim": { "branch": "master", "commit": "86248d97be84a1ce83f0541500ef9edc99ea2aa1" }, "telescope-fzf-native.nvim": { "branch": "main", "commit": "9ef21b2e6bb6ebeaf349a0781745549bbb870d27" },