vim-mbnotes/ftdetect/mbnotes.vim
2025-01-16 14:51:07 +00:00

11 lines
218 B
VimL

vim9s
def IsMBNotes()
var path_prefix = expand('%:p')[0 : len(g:mbnotes_dir) - 1]
if path_prefix == g:mbnotes_dir
set filetype=mbnotes.quarto
endif
enddef
au BufNewFile,BufRead *.qmd IsMBNotes()