robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

zeertzjqMerge pull request #40472 from zeertzjq/vim-1f337327945732ed7

master
1.1 KiB38 linesraw
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")
12  finish
13endif
14
15if get(g:, 'idris2_recommended_style',
16      \ get(g:, 'filetype_recommended_style', 1))
17  setlocal shiftwidth=2
18  setlocal 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
23  setlocal noexpandtab
24else
25  setlocal 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