mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:9.0.0182: quarto files are not recognized (#19702)
Problem: Quarto files are not recognized.
Solution: Recognize quarto files by the extension. (Jonas Strittmatter,
closes vim/vim#10880)
3a9687fb27
This commit is contained in:
parent
78658ef383
commit
ff1266aaaa
@ -1532,6 +1532,9 @@ au BufNewFile,BufRead *.ptl,*.pyi,SConstruct setf python
|
|||||||
" QL
|
" QL
|
||||||
au BufRead,BufNewFile *.ql,*.qll setf ql
|
au BufRead,BufNewFile *.ql,*.qll setf ql
|
||||||
|
|
||||||
|
" Quarto
|
||||||
|
au BufRead,BufNewFile *.qmd setf quarto
|
||||||
|
|
||||||
" Radiance
|
" Radiance
|
||||||
au BufNewFile,BufRead *.rad,*.mat setf radiance
|
au BufNewFile,BufRead *.rad,*.mat setf radiance
|
||||||
|
|
||||||
|
@ -776,6 +776,7 @@ local extension = {
|
|||||||
ptl = 'python',
|
ptl = 'python',
|
||||||
ql = 'ql',
|
ql = 'ql',
|
||||||
qll = 'ql',
|
qll = 'ql',
|
||||||
|
qmd = 'quarto',
|
||||||
R = function(path, bufnr)
|
R = function(path, bufnr)
|
||||||
return require('vim.filetype.detect').r(bufnr)
|
return require('vim.filetype.detect').r(bufnr)
|
||||||
end,
|
end,
|
||||||
|
@ -441,6 +441,7 @@ let s:filename_checks = {
|
|||||||
\ 'python': ['file.py', 'file.pyw', '.pythonstartup', '.pythonrc', 'file.ptl', 'file.pyi', 'SConstruct'],
|
\ 'python': ['file.py', 'file.pyw', '.pythonstartup', '.pythonrc', 'file.ptl', 'file.pyi', 'SConstruct'],
|
||||||
\ 'ql': ['file.ql', 'file.qll'],
|
\ 'ql': ['file.ql', 'file.qll'],
|
||||||
\ 'quake': ['anybaseq2/file.cfg', 'anyid1/file.cfg', 'quake3/file.cfg', 'baseq2/file.cfg', 'id1/file.cfg', 'quake1/file.cfg', 'some-baseq2/file.cfg', 'some-id1/file.cfg', 'some-quake1/file.cfg'],
|
\ 'quake': ['anybaseq2/file.cfg', 'anyid1/file.cfg', 'quake3/file.cfg', 'baseq2/file.cfg', 'id1/file.cfg', 'quake1/file.cfg', 'some-baseq2/file.cfg', 'some-id1/file.cfg', 'some-quake1/file.cfg'],
|
||||||
|
\ 'quarto': ['file.qmd'],
|
||||||
\ 'r': ['file.r'],
|
\ 'r': ['file.r'],
|
||||||
\ 'radiance': ['file.rad', 'file.mat'],
|
\ 'radiance': ['file.rad', 'file.mat'],
|
||||||
\ 'raku': ['file.pm6', 'file.p6', 'file.t6', 'file.pod6', 'file.raku', 'file.rakumod', 'file.rakudoc', 'file.rakutest'],
|
\ 'raku': ['file.pm6', 'file.p6', 'file.t6', 'file.pod6', 'file.raku', 'file.rakumod', 'file.rakudoc', 'file.rakutest'],
|
||||||
|
Loading…
Reference in New Issue
Block a user