Skip to content

Commit b2bff54

Browse files
wert2allUzaaft
andauthored
fix(obsidian-nvim): Change remote to up to date fork, blink.cmp integration and add in daily-notes folder (#1479)
* fix(obsidian-nvim): fix config of obsidian.nvim Switch to `obsidian-nvim/obsidian.nvim` and add `blink` to plugin pickers * fix(obsidian-nvim): add snacks picker integration * fix(obsidian-nvim): Revert parts of the original PR * fix(obsidian-nvim): Inline string * feat(obsidian-nvim): Optimize if-else tests for happy-path Assume most people are using v5 with snacks * docs(obsidian-nvim): Swap out remote in docs * fix(obsidian-nvim): Inline string --------- Co-authored-by: Uzair Aftab <uzaaft@outlook.com>
1 parent 90435b9 commit b2bff54

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

lua/astrocommunity/note-taking/obsidian-nvim/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Neovim plugin for Obsidian, written in Lua
44

5-
**Repository:** <https://github.com/epwalsh/obsidian.nvim>
5+
**Repository:** <https://github.com/obsidian-nvim/obsidian.nvim>
66

77
A Neovim plugin for writing and navigating an [Obsidian](https://obsidian.md) vault, written in Lua.
88

lua/astrocommunity/note-taking/obsidian-nvim/init.lua

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
return {
2-
"epwalsh/obsidian.nvim",
2+
"obsidian-nvim/obsidian.nvim",
33
-- the obsidian vault in this default config ~/obsidian-vault
44
-- If you want to use the home shortcut '~' here you need to call 'vim.fn.expand':
55
-- event = { "bufreadpre " .. vim.fn.expand "~" .. "/my-vault/**.md" },
66
event = { "BufReadPre */obsidian-vault/*.md" },
7+
78
dependencies = {
89
"nvim-lua/plenary.nvim",
910
{ "hrsh7th/nvim-cmp", optional = true },
@@ -32,7 +33,8 @@ return {
3233
return astrocore.extend_tbl(opts, {
3334
dir = vim.env.HOME .. "/obsidian-vault", -- specify the vault location. no need to call 'vim.fn.expand' here
3435
use_advanced_uri = true,
35-
finder = (astrocore.is_available "telescope.nvim" and "telescope.nvim")
36+
finder = (astrocore.is_available "snacks.pick" and "snacks.pick")
37+
or (astrocore.is_available "telescope.nvim" and "telescope.nvim")
3638
or (astrocore.is_available "fzf-lua" and "fzf-lua")
3739
or (astrocore.is_available "mini.pick" and "mini.pick"),
3840

@@ -41,9 +43,12 @@ return {
4143
date_format = "%Y-%m-%d-%a",
4244
time_format = "%H:%M",
4345
},
44-
46+
daily_notes = {
47+
folder = "daily",
48+
},
4549
completion = {
4650
nvim_cmp = astrocore.is_available "nvim-cmp",
51+
blink = astrocore.is_available "blink",
4752
},
4853

4954
note_frontmatter_func = function(note)

0 commit comments

Comments
 (0)