mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-08 11:33:52 -05:00
Fix neovim :Tutor filetype detection (#631)
This commit is contained in:
@@ -7,7 +7,7 @@ A collection of language packs for Vim.
|
||||
> One to rule them all, one to find them, one to bring them all and in the darkness bind them.
|
||||
|
||||
- It **won't affect your startup time**, as scripts are loaded only on demand\*.
|
||||
- It **installs and updates 120+ times faster** than the <!--Package Count-->598<!--/Package Count--> packages it consists of.
|
||||
- It **installs and updates 120+ times faster** than the <!--Package Count-->599<!--/Package Count--> packages it consists of.
|
||||
- It is also more secure (scripts loaded for every filetype are generated by vim-polyglot)
|
||||
- Best syntax and indentation support (no other features). Hand-selected language packs.
|
||||
- Automatically detects indentation (includes performance-optimized version of [vim-sleuth](https://github.com/tpope/vim-sleuth), can be disabled)
|
||||
|
||||
@@ -560,6 +560,7 @@ let s:globs = {
|
||||
\ 'tssop': '*.tssop',
|
||||
\ 'tt2': '*.tt2',
|
||||
\ 'tt2html': '*.tt2',
|
||||
\ 'tutor': '*.tutor',
|
||||
\ 'typescript': '*.ts',
|
||||
\ 'typescriptreact': '*.tsx',
|
||||
\ 'uc': '*.uc',
|
||||
|
||||
@@ -1856,6 +1856,10 @@ if !has_key(g:polyglot_is_disabled, 'twig')
|
||||
au BufNewFile,BufRead *.xml.twig setf xml.twig
|
||||
endif
|
||||
|
||||
if !has_key(g:polyglot_is_disabled, 'tutor')
|
||||
au BufNewFile,BufRead *.tutor setf tutor
|
||||
endif
|
||||
|
||||
if !has_key(g:polyglot_is_disabled, 'tptp')
|
||||
au BufNewFile,BufRead *.ax,*.p,*.tptp setf tptp
|
||||
endif
|
||||
|
||||
@@ -1672,6 +1672,12 @@ filetypes:
|
||||
- tptp
|
||||
- ax
|
||||
---
|
||||
name: tutor
|
||||
filetypes:
|
||||
- name: tutor
|
||||
extensions:
|
||||
- tutor
|
||||
---
|
||||
name: twig
|
||||
remote: lumiliet/vim-twig
|
||||
filetypes:
|
||||
|
||||
@@ -176,6 +176,7 @@ call TestFiletype('sql')
|
||||
call TestFiletype('cql')
|
||||
call TestFiletype('php')
|
||||
call TestFiletype('blade')
|
||||
call TestFiletype('pest')
|
||||
call TestFiletype('plantuml')
|
||||
call TestFiletype('pony')
|
||||
call TestFiletype('ps1')
|
||||
@@ -224,6 +225,7 @@ call TestFiletype('thrift')
|
||||
call TestFiletype('tmux')
|
||||
call TestFiletype('toml')
|
||||
call TestFiletype('tptp')
|
||||
call TestFiletype('tutor')
|
||||
call TestFiletype('html.twig')
|
||||
call TestFiletype('xml.twig')
|
||||
call TestFiletype('typescript')
|
||||
|
||||
Reference in New Issue
Block a user