Skip to content

Commit f76987b

Browse files
committed
customizable extmap
1 parent 6130b8e commit f76987b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/gist.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ function! s:GistGetAuthHeader() abort
970970
return secret
971971
endfunction
972972

973-
let s:extmap = {
973+
let s:extmap = extend({
974974
\".adb": "ada",
975975
\".ahk": "ahk",
976976
\".arc": "arc",
@@ -1102,7 +1102,7 @@ let s:extmap = {
11021102
\".xq": "xquery",
11031103
\".xs": "xs",
11041104
\".yml": "yaml",
1105-
\}
1105+
\}, get(g:, 'gist_extmap', {}))
11061106
11071107
let &cpo = s:save_cpo
11081108
unlet s:save_cpo

0 commit comments

Comments
 (0)