robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
30259d6af7
master
1" Vim filetype plugin file 2" Language: Haskell 3" Maintainer: Daniel Campoverde <alx@sillybytes.net> 4" Previous Maintainer: Nikolai Weibull <now@bitwi.se> 5" Latest Revision: 2018-08-27 6" 2025 Jul 09 by Vim Project revert setting iskeyword #8191 7" 2026 Jan 18 by Vim Project add include-search and define support #19143 8 9if exists ( "b:did_ftplugin" ) 10finish 11endif 12let b: did_ftplugin = 1 13 14let s: cpo_save = & cpo 15set cpo & vim 16 17let b: undo_ftplugin = "setl com< cms< fo< su< sua< inex< inc< def<" 18 19setlocal comments = s1fl:{-,mb:-,ex:-},:--commentstring = --\ %s 20setlocal formatoptions -= tformatoptions += croql 21setlocal omnifunc = haskellcomplete#Complete 22 23setlocal suffixes += .hi 24setlocal suffixesadd = .hs,.lhs,.hsc 25 26setlocal includeexpr = findfile (tr(v:fname,'.','/'),'.;') 27setlocal include = ^import\\>\\%(\\s\\+safe\\>\\)\\?\\%(\\s\\+qualified\\>\\)\\? 28 29setlocal define = ^\\%(data\\>\\\|class\\>\\%(.*=>\\)\\?\\\|\\%(new\\)\\?type\\>\\\|\\ze\\k\\+\\s*\\%(::\\\|=\\)\\) 30 31let & cpo = s: cpo_save 32unlet s: cpo_save