blob: 0200ba5913df8e7268ecbe3e4ff8b9d7c0958e6a [file] [log] [blame]
Bram Moolenaar9fbdbb82022-09-27 17:30:34 +01001" Vim filetype plugin
2" Language: Hare
3" Maintainer: Amelia Clarke <me@rsaihe.dev>
4" Previous Maintainer: Drew DeVault <sir@cmpwn.com>
dkearnsf937ab32023-08-29 05:32:27 +10005" Last Updated: 2022-09-28
6" 2023 Aug 28 by Vim Project (undo_ftplugin)
Bram Moolenaar9fbdbb82022-09-27 17:30:34 +01007
Bram Moolenaar9fbdbb82022-09-27 17:30:34 +01008if exists('b:did_ftplugin')
9 finish
10endif
Bram Moolenaar9fbdbb82022-09-27 17:30:34 +010011let b:did_ftplugin = 1
12
dkearnsf937ab32023-08-29 05:32:27 +100013" Formatting settings.
14setlocal formatoptions-=t formatoptions+=croql/
Bram Moolenaar9fbdbb82022-09-27 17:30:34 +010015
dkearnsf937ab32023-08-29 05:32:27 +100016" Miscellaneous.
17setlocal comments=://
18setlocal commentstring=//\ %s
19setlocal suffixesadd=.ha
20
21let b:undo_ftplugin = "setl cms< com< fo< sua<"
22
23" Hare recommended style.
24if get(g:, "hare_recommended_style", 1)
25 setlocal noexpandtab
26 setlocal shiftwidth=8
27 setlocal softtabstop=0
28 setlocal tabstop=8
29 setlocal textwidth=80
30 let b:undo_ftplugin ..= " | setl et< sts< sw< ts< tw<"
31endif
Bram Moolenaar9fbdbb82022-09-27 17:30:34 +010032
33compiler hare
dkearnsf937ab32023-08-29 05:32:27 +100034
35" vim: et sw=2 sts=2 ts=8