robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
7945732ed7
master
1" Vim ftplugin file 2" Language: Idris 2 3" Last Change: 2024 Nov 05 4" 2026 Jun 27 by Vim Project (add recommended style guard) 5" Maintainer: Idris Hackers (https://github.com/edwinb/idris2-vim), Serhii Khoma <srghma@gmail.com> 6" License: Vim (see :h license) 7" Repository: https://github.com/ShinKage/idris2-nvim 8" 9" Based on ftplugin/idris2.vim from https://github.com/edwinb/idris2-vim 10 11if exists ( "b:did_ftplugin" ) 12finish 13endif 14 15if get ( g:, 'idris2_recommended_style' , 16 \get ( g:, 'filetype_recommended_style' , 1 )) 17setlocal shiftwidth = 2 18setlocal tabstop = 2 19endif 20 21" Set g:idris2#allow_tabchar = 1 to use tabs instead of spaces 22if exists ( 'g:idris2#allow_tabchar' ) && g: idris2#allow_tabchar != 0 23setlocal noexpandtab 24else 25setlocal expandtab 26endif 27 28setlocal comments = s1:{-,mb:-,ex:-},:\|\|\|,:-- 29setlocal commentstring = --\ %s 30 31" makes ? a part of a word, e.g. for named holes `vzipWith f [] [] = ?vzipWith_rhs_3`, uncomment if want to reenable 32" setlocal iskeyword+=? 33 34setlocal wildignore += *.ibc 35 36let b: undo_ftplugin = "setlocal shiftwidth< tabstop< expandtab< comments< commentstring< iskeyword< wildignore<" 37 38let b: did_ftplugin = 1