From 3388fd2b7e6794ab053026a3dcba509b8d6079e4 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sun, 30 Mar 2025 17:21:19 +0100 Subject: [PATCH] Add a keymap to easily add `{{site.url))/` before ...some text This is useful when writing my daily emails and creating links within the content. --- .../home-manager/cli/neovim/config/after/ftplugin/markdown.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/home-manager/cli/neovim/config/after/ftplugin/markdown.lua b/modules/home-manager/cli/neovim/config/after/ftplugin/markdown.lua index bbd678ca..27bdcf09 100644 --- a/modules/home-manager/cli/neovim/config/after/ftplugin/markdown.lua +++ b/modules/home-manager/cli/neovim/config/after/ftplugin/markdown.lua @@ -1,3 +1,5 @@ -- TODO: Interim fix for https://github.com/nvim-treesitter/nvim-treesitter-context/issues/431. vim.opt_local.spell = true vim.opt_local.wrap = true + +vim.keymap.set("n", "su", "Bi{{site.url}}/")