From 03ab98c8d3da375ee4a63abfcbe3c8da52e0e0b1 Mon Sep 17 00:00:00 2001 From: Aditya Date: Wed, 6 Mar 2024 19:24:02 +0530 Subject: [PATCH] add markdown-preview --- config/default.nix | 1 + config/utils/markdown-preview.nix | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 config/utils/markdown-preview.nix diff --git a/config/default.nix b/config/default.nix index a59c244..fc2025b 100644 --- a/config/default.nix +++ b/config/default.nix @@ -57,5 +57,6 @@ ./utils/hardtime.nix ./utils/harpoon.nix ./utils/illuminate.nix + ./utils/markdown-preview.nix ]; } diff --git a/config/utils/markdown-preview.nix b/config/utils/markdown-preview.nix new file mode 100644 index 0000000..65fa96c --- /dev/null +++ b/config/utils/markdown-preview.nix @@ -0,0 +1,17 @@ +{ + plugins.markdown-preview = { + enable = true; + theme = "dark"; + }; + keymaps = [ + { + mode = "n"; + key = "cp"; + action = "MarkdownPreview"; + options = { + desc = "Markdown Preview"; + }; + } + ]; +} +