Add gdscript, closes #483

This commit is contained in:
Adam Stankiewicz
2020-04-25 21:06:45 +02:00
parent 68b2748af1
commit b2ee28374b
8 changed files with 497 additions and 1 deletions

View File

@@ -461,6 +461,20 @@ autocmd BufNewFile,BufRead *.fs,*.fsi,*.fsx set filetype=fsharp
augroup end
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'gdscript') == -1
augroup filetypedetect
" gdscript, from gdscript3.vim in calviken/vim-gdscript3
autocmd BufRead,BufNewFile *.gd set filetype=gdscript3
augroup end
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'gdscript') == -1
augroup filetypedetect
" gdscript, from gsl.vim in calviken/vim-gdscript3
autocmd BufRead,BufNewFile *.shader set filetype=gsl
augroup end
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'glsl') == -1
augroup filetypedetect
" glsl, from glsl.vim in tikhomirov/vim-glsl:_NOAFTER