From 1c467f1a7d25cce1cb526b9ccbc2314f1043bf3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20B=C3=BCscher?= Date: Thu, 5 Dec 2024 16:37:15 +0100 Subject: [PATCH] Updates to nvim config --- home/dot_config/lazyvim/lua/plugins/obsidian.lua | 8 +++----- .../dot_config/lazyvim/lua/plugins/render-markdown.lua | 10 ++++++++++ 2 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 home/dot_config/lazyvim/lua/plugins/render-markdown.lua diff --git a/home/dot_config/lazyvim/lua/plugins/obsidian.lua b/home/dot_config/lazyvim/lua/plugins/obsidian.lua index eaa1080..fdd5dd5 100644 --- a/home/dot_config/lazyvim/lua/plugins/obsidian.lua +++ b/home/dot_config/lazyvim/lua/plugins/obsidian.lua @@ -22,13 +22,11 @@ return { { "oO", "ObsidianOpen", desc = "Open note in Obsidian" }, { "on", "ObsidianNew", desc = "New note" }, { "os", "ObsidianSearch", desc = "Search notes" }, - { "ol", "ObsidianLink", desc = "Link existing note" }, - { "oL", "ObsidianLinkNew", desc = "Create and link new note" }, - { "oe", "ObsidianExtractNote", desc = "Extract selection to new note" }, { "op", "ObsidianPasteImg", desc = "Paste image" }, { "oi", "ObsidianTemplate", desc = "Insert template" }, - { "ol", "ObsidianLink", mode = "v", desc = "Link existing note (visual)" }, - { "oL", "ObsidianLinkNew", mode = "v", desc = "Create and link new note (visual)" }, + { "oe", ":ObsidianExtractNote", mode = { "x" }, desc = "Extract selection to new note" }, + { "ol", ":ObsidianLink", mode = { "x" }, desc = "Link existing note" }, + { "oL", ":ObsidianLinkNew", mode = { "x" }, desc = "Create and link new note" }, }, opts = { ui = { enable = false }, diff --git a/home/dot_config/lazyvim/lua/plugins/render-markdown.lua b/home/dot_config/lazyvim/lua/plugins/render-markdown.lua new file mode 100644 index 0000000..5247131 --- /dev/null +++ b/home/dot_config/lazyvim/lua/plugins/render-markdown.lua @@ -0,0 +1,10 @@ +return { + "MeanderingProgrammer/render-markdown.nvim", + opts = { + heading = { + sign = false, + position = false, + icons = { "󰲡 ", "󰲣 ", "󰲥 ", "󰲧 ", "󰲩 ", "󰲫 " }, + }, + }, +}