From 8778496ca40bc3f09dbefa0584c7c5c710e5ac71 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 19 Dec 2024 16:15:17 +0000 Subject: [PATCH] Update vim config for markdown and vimwiki surround - Define surround mapping for bold text (**) in markdown and vimwiki --- home/common/core/nixvim/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/home/common/core/nixvim/default.nix b/home/common/core/nixvim/default.nix index 02d6808..1f5a0a6 100644 --- a/home/common/core/nixvim/default.nix +++ b/home/common/core/nixvim/default.nix @@ -60,6 +60,12 @@ let g:db_ui_hide_schemas = ['pg_catalog', 'pg_toast_temp.*', 'pg_toast'] let g:db_ui_use_nerd_fonts = 1 let g:db_ui_execute_on_save = 0 + + " == custom surround + augroup initvim + au! + autocmd FileType markdown,vimwiki let b:surround_{char2nr('b')} = "**\r**" + augroup END ''; }; }