mirror of
https://github.com/neovim/neovim.git
synced 2026-07-11 20:09:44 +00:00
vim-patch:9.1.2100: filetype: tiltfiles are not recognized (#37477)
Problem: filetype: tiltfiles are not recognized
Solution: Detect Tiltfiles.* and *.tiltfiles as tiltfile filetype.
(Luis Davim)
Reference:
- https://docs.tilt.dev/api.html
fixes: vim/vim#19214
closes: vim/vim#19218
ff0e5d994c
Co-authored-by: Luis Davim <luis.davim@gmail.com>
This commit is contained in:
@@ -1299,6 +1299,8 @@ local extension = {
|
|||||||
tfvars = 'terraform-vars',
|
tfvars = 'terraform-vars',
|
||||||
thrift = 'thrift',
|
thrift = 'thrift',
|
||||||
tig = 'tiger',
|
tig = 'tiger',
|
||||||
|
Tiltfile = 'tiltfile',
|
||||||
|
tiltfile = 'tiltfile',
|
||||||
tla = 'tla',
|
tla = 'tla',
|
||||||
tli = 'tli',
|
tli = 'tli',
|
||||||
toml = 'toml',
|
toml = 'toml',
|
||||||
@@ -1935,6 +1937,8 @@ local filename = {
|
|||||||
['tidy.conf'] = 'tidy',
|
['tidy.conf'] = 'tidy',
|
||||||
tidyrc = 'tidy',
|
tidyrc = 'tidy',
|
||||||
['.tidyrc'] = 'tidy',
|
['.tidyrc'] = 'tidy',
|
||||||
|
Tiltfile = 'tiltfile',
|
||||||
|
tiltfile = 'tiltfile',
|
||||||
['.tmux.conf'] = 'tmux',
|
['.tmux.conf'] = 'tmux',
|
||||||
['Cargo.lock'] = 'toml',
|
['Cargo.lock'] = 'toml',
|
||||||
['/.cargo/config'] = 'toml',
|
['/.cargo/config'] = 'toml',
|
||||||
@@ -2757,6 +2761,7 @@ local pattern = {
|
|||||||
['termcap'] = starsetf(function(_path, _bufnr)
|
['termcap'] = starsetf(function(_path, _bufnr)
|
||||||
return require('vim.filetype.detect').printcap('term')
|
return require('vim.filetype.detect').printcap('term')
|
||||||
end),
|
end),
|
||||||
|
['^Tiltfile%.'] = starsetf('tiltfile'),
|
||||||
['%.t%.html$'] = 'tilde',
|
['%.t%.html$'] = 'tilde',
|
||||||
['%.vhdl_[0-9]'] = starsetf('vhdl'),
|
['%.vhdl_[0-9]'] = starsetf('vhdl'),
|
||||||
['vimrc'] = starsetf('vim'),
|
['vimrc'] = starsetf('vim'),
|
||||||
|
|||||||
@@ -885,6 +885,7 @@ func s:GetFilenameChecks() abort
|
|||||||
\ 'tidy': ['.tidyrc', 'tidyrc', 'tidy.conf'],
|
\ 'tidy': ['.tidyrc', 'tidyrc', 'tidy.conf'],
|
||||||
\ 'tiger': ['file.tig'],
|
\ 'tiger': ['file.tig'],
|
||||||
\ 'tilde': ['file.t.html'],
|
\ 'tilde': ['file.t.html'],
|
||||||
|
\ 'tiltfile': ['Tiltfile', 'tiltfile', 'file.Tiltfile', 'file.tiltfile', 'Tiltfile.debian'],
|
||||||
\ 'tla': ['file.tla'],
|
\ 'tla': ['file.tla'],
|
||||||
\ 'tli': ['file.tli'],
|
\ 'tli': ['file.tli'],
|
||||||
\ 'tmux': ['tmuxfile.conf', '.tmuxfile.conf', '.tmux-file.conf', '.tmux.conf', 'tmux-file.conf', 'tmux.conf', 'tmux.conf.local'],
|
\ 'tmux': ['tmuxfile.conf', '.tmuxfile.conf', '.tmux-file.conf', '.tmux.conf', 'tmux-file.conf', 'tmux.conf', 'tmux.conf.local'],
|
||||||
|
|||||||
Reference in New Issue
Block a user