robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
410ba8374d
master
1" Tutor filetype plugin 2" Language: Tutor (the new tutor plugin) 3" Maintainer: This runtime file is looking for a new maintainer. 4" Last Change: 2025 May 10 5" Contributors: Phạm Bình An <phambinhanctb2004@gmail.com> 6" Original Author: Felipe Morales <hel.sheep@gmail.com> 7" Last Change: 8" 2025 May 10 set b:undo_ftplugin 9" 2025 May 12 update b:undo_ftplugin 10 11" Base: {{{1 12call tutor#SetupVim () 13 14" Buffer Settings: {{{1 15setlocal noreadonly 16setlocal noundofile 17 18setlocal keywordprg = :help 19setlocal iskeyword = @,-,_ 20 21" The user will have to enable the folds themself, but we provide the foldexpr 22" function. 23setlocal foldmethod = manual 24setlocal foldexpr = tutor #TutorFolds() 25setlocal foldlevel = 4 26 27 28" Mappings: {{{1 29 30call tutor#SetNormalMappings () 31 32" Checks: {{{1 33 34sign definetutorok text= ✓ texthl= tutorOK 35sign definetutorbad text= ✗ texthl= tutorX 36 37let b: undo_ftplugin = "setl foldmethod< foldexpr< foldlevel< undofile< keywordprg< iskeyword< |" 38 \. "call tutor#EnableInteractive(v:false) |" 39 40" vim: fdm=marker