diff options
Diffstat (limited to 'after/ftplugin')
-rw-r--r-- | after/ftplugin/markdown.lua | 2 | ||||
-rw-r--r-- | after/ftplugin/sh.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/after/ftplugin/markdown.lua b/after/ftplugin/markdown.lua index 67bf699..cf4e3f9 100644 --- a/after/ftplugin/markdown.lua +++ b/after/ftplugin/markdown.lua @@ -1,3 +1,3 @@ -- -- Custom highlight for markdown definitions vim.cmd("hi mdDefs guifg=" .. require("nord.colors").palette.frost.ice) -vim.cmd("match mdDefs /^[[:space:]]*-[[:alnum:] ]\\+:/") +vim.cmd("match mdDefs /^[[:space:]]*\\([-*]\\|[0-9]\\+[.)]\\)[^:]\\+::/") diff --git a/after/ftplugin/sh.lua b/after/ftplugin/sh.lua index eb7b950..48c140e 100644 --- a/after/ftplugin/sh.lua +++ b/after/ftplugin/sh.lua @@ -1,5 +1,5 @@ local map = vim.keymap.set map("n", ",v", [[<cmd>s/\(\s*\)\(.\+\)/\1"$(\2)"/<cr>]], { desc = "Surround with variable" }) -map("n", ",p", [[<cmd>s/\(\s*\)\(.\+\)/\1>&2 printf '\2: %s\\n' "$\2"/<cr>]], { desc = "Surround var with printf" }) +map("n", ",p", [[<cmd>s/\(\s*\)\(.\+\)/\1>\&2 printf '\2: %s\\n' "$\2"/<cr>]], { desc = "Surround var with printf" }) map("n", ",e", [[<cmd>s/\(\s*\)\(.\+\)/\1[ "$\2" ] || exit 1'/<cr>]], { desc = "Surround var with exit if empty" }) |