Skip to content

Commit da18fe6

Browse files
authored
Fix neovim :Tutor filetype detection (#631)
1 parent 4af1321 commit da18fe6

File tree

5 files changed

+14
-1
lines changed

5 files changed

+14
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ A collection of language packs for Vim.
77
> One to rule them all, one to find them, one to bring them all and in the darkness bind them.
88
99
- It **won't affect your startup time**, as scripts are loaded only on demand\*.
10-
- It **installs and updates 120+ times faster** than the <!--Package Count-->598<!--/Package Count--> packages it consists of.
10+
- It **installs and updates 120+ times faster** than the <!--Package Count-->599<!--/Package Count--> packages it consists of.
1111
- It is also more secure (scripts loaded for every filetype are generated by vim-polyglot)
1212
- Best syntax and indentation support (no other features). Hand-selected language packs.
1313
- Automatically detects indentation (includes performance-optimized version of [vim-sleuth](https://github.com/tpope/vim-sleuth), can be disabled)

autoload/polyglot/sleuth.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,7 @@ let s:globs = {
560560
\ 'tssop': '*.tssop',
561561
\ 'tt2': '*.tt2',
562562
\ 'tt2html': '*.tt2',
563+
\ 'tutor': '*.tutor',
563564
\ 'typescript': '*.ts',
564565
\ 'typescriptreact': '*.tsx',
565566
\ 'uc': '*.uc',

ftdetect/polyglot.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1856,6 +1856,10 @@ if !has_key(g:polyglot_is_disabled, 'twig')
18561856
au BufNewFile,BufRead *.xml.twig setf xml.twig
18571857
endif
18581858

1859+
if !has_key(g:polyglot_is_disabled, 'tutor')
1860+
au BufNewFile,BufRead *.tutor setf tutor
1861+
endif
1862+
18591863
if !has_key(g:polyglot_is_disabled, 'tptp')
18601864
au BufNewFile,BufRead *.ax,*.p,*.tptp setf tptp
18611865
endif

packages.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1672,6 +1672,12 @@ filetypes:
16721672
- tptp
16731673
- ax
16741674
---
1675+
name: tutor
1676+
filetypes:
1677+
- name: tutor
1678+
extensions:
1679+
- tutor
1680+
---
16751681
name: twig
16761682
remote: lumiliet/vim-twig
16771683
filetypes:

tests/filetypes.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ call TestFiletype('sql')
176176
call TestFiletype('cql')
177177
call TestFiletype('php')
178178
call TestFiletype('blade')
179+
call TestFiletype('pest')
179180
call TestFiletype('plantuml')
180181
call TestFiletype('pony')
181182
call TestFiletype('ps1')
@@ -224,6 +225,7 @@ call TestFiletype('thrift')
224225
call TestFiletype('tmux')
225226
call TestFiletype('toml')
226227
call TestFiletype('tptp')
228+
call TestFiletype('tutor')
227229
call TestFiletype('html.twig')
228230
call TestFiletype('xml.twig')
229231
call TestFiletype('typescript')

0 commit comments

Comments
 (0)