vim

Fork of vim, an acceptable text editor
git clone git://git.laack.co/vim.git
Log | Files | Refs | README | LICENSE

idris2.vim (1166B)


      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 
     11 if exists("b:did_ftplugin")
     12   finish
     13 endif
     14 
     15 if get(g:, 'idris2_recommended_style',
     16       \ get(g:, 'filetype_recommended_style', 1))
     17   setlocal shiftwidth=2
     18   setlocal tabstop=2
     19 endif
     20 
     21 " Set g:idris2#allow_tabchar = 1 to use tabs instead of spaces
     22 if exists('g:idris2#allow_tabchar') && g:idris2#allow_tabchar != 0
     23   setlocal noexpandtab
     24 else
     25   setlocal expandtab
     26 endif
     27 
     28 setlocal comments=s1:{-,mb:-,ex:-},:\|\|\|,:--
     29 setlocal 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 
     34 setlocal wildignore+=*.ibc
     35 
     36 let b:undo_ftplugin = "setlocal shiftwidth< tabstop< expandtab< comments< commentstring< iskeyword< wildignore<"
     37 
     38 let b:did_ftplugin = 1