Skip to content

Commit d2fde79

Browse files
feat(injection): Add some languages to TS injection blocks
1 parent dbcff9e commit d2fde79

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

lua/orgmode/utils/init.lua

+7-3
Original file line numberDiff line numberDiff line change
@@ -612,9 +612,13 @@ end
612612
function utils.detect_filetype(name)
613613
local map = {
614614
['emacs-lisp'] = 'lisp',
615-
['js'] = 'javascript',
616-
['ts'] = 'typescript',
617-
['md'] = 'markdown',
615+
js = 'javascript',
616+
ts = 'typescript',
617+
md = 'markdown',
618+
ex = 'elixir',
619+
pl = 'perl',
620+
sh = 'bash',
621+
uxn = 'uxntal',
618622
}
619623
local filename = '__org__detect_filetype__.' .. (map[name] or name)
620624
local ft = vim.filetype.match({ filename = filename })

0 commit comments

Comments
 (0)