mirror of
https://github.com/neovim/neovim.git
synced 2026-05-03 20:45:02 +00: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:
committed by
GitHub
parent
78658ef383
commit
ff1266aaaa
@@ -1532,6 +1532,9 @@ au BufNewFile,BufRead *.ptl,*.pyi,SConstruct setf python
|
||||
" QL
|
||||
au BufRead,BufNewFile *.ql,*.qll setf ql
|
||||
|
||||
" Quarto
|
||||
au BufRead,BufNewFile *.qmd setf quarto
|
||||
|
||||
" Radiance
|
||||
au BufNewFile,BufRead *.rad,*.mat setf radiance
|
||||
|
||||
|
||||
@@ -776,6 +776,7 @@ local extension = {
|
||||
ptl = 'python',
|
||||
ql = 'ql',
|
||||
qll = 'ql',
|
||||
qmd = 'quarto',
|
||||
R = function(path, bufnr)
|
||||
return require('vim.filetype.detect').r(bufnr)
|
||||
end,
|
||||
|
||||
Reference in New Issue
Block a user