idris2.vim 995 B

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