From e50eef77b07980478183a5a853c947ddd0c30a43 Mon Sep 17 00:00:00 2001 From: Ray Jameson <67468725+RayJameson@users.noreply.github.com> Date: Mon, 28 Aug 2023 11:42:34 +0600 Subject: [PATCH] fix(obsidian-nvim): remove annoying notification about "gf" mapping (#541) --- lua/astrocommunity/note-taking/obsidian-nvim/README.md | 3 +++ lua/astrocommunity/note-taking/obsidian-nvim/init.lua | 1 + 2 files changed, 4 insertions(+) diff --git a/lua/astrocommunity/note-taking/obsidian-nvim/README.md b/lua/astrocommunity/note-taking/obsidian-nvim/README.md index 249845e93..e6bd46ad2 100644 --- a/lua/astrocommunity/note-taking/obsidian-nvim/README.md +++ b/lua/astrocommunity/note-taking/obsidian-nvim/README.md @@ -16,5 +16,8 @@ and to match your vault location. +We set `mappings` to an empty table, because `gf` is used for lazy loading in `keys` +if you don't want `gf` for lazy loading, you should remove `keys` and `mappings` tables + The plugin may also nag and ask you to create a `templates` directory in the vault. You can use `mkdir templates` to create an empty directory. diff --git a/lua/astrocommunity/note-taking/obsidian-nvim/init.lua b/lua/astrocommunity/note-taking/obsidian-nvim/init.lua index f60c052db..7ccd12ac2 100644 --- a/lua/astrocommunity/note-taking/obsidian-nvim/init.lua +++ b/lua/astrocommunity/note-taking/obsidian-nvim/init.lua @@ -27,6 +27,7 @@ return { dir = vim.env.HOME .. "/obsidian-vault", -- specify the vault location. no need to call 'vim.fn.expand' here use_advanced_uri = true, finder = "telescope.nvim", + mappings = {}, templates = { subdir = "templates",