Skip to content

Commit a1c2333

Browse files
committed
treat shell code blocks as bash in markdown
Signed-off-by: abzcoding <[email protected]>
1 parent 7b94d93 commit a1c2333

File tree

3 files changed

+8
-163
lines changed

3 files changed

+8
-163
lines changed
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
;; extends
2+
3+
(fenced_code_block
4+
(info_string
5+
(language) @_lang)
6+
(#match? @_lang "shell")
7+
(code_fence_content) @injection.content
8+
(#set! injection.language "bash"))

β€Žlua/user/markdown_syn.lua

-161
This file was deleted.

β€Žlua/user/neovim.lua

-2
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,6 @@ M.config = function()
171171
end
172172
vim.g.editorconfig = true
173173

174-
vim.g.markdown_fenced_languages = { "shell=bash" }
175-
176174
if vim.g.neovide then
177175
vim.g.neovide_cursor_animation_length = 0.01
178176
vim.g.neovide_cursor_trail_length = 0.05

0 commit comments

Comments
Β (0)