Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
hare.vim52 linesDownload Raw Back to ftplugin
1vim9script2 3# Vim filetype plugin.4# Language:    Hare5# Maintainer:  Amelia Clarke <selene@perilune.dev>6# Last Change: 2026 Jan 247# Upstream:    https://git.sr.ht/~sircmpwn/hare.vim8 9if exists('b:did_ftplugin')10  finish11endif12b:did_ftplugin = 113 14# Use the Hare compiler.15compiler hare16b:undo_ftplugin = 'compiler make'17 18# Formatting settings.19setlocal comments=://20setlocal commentstring=//\ %s21setlocal formatlistpat=^\\s*-\\s\\+22setlocal formatoptions+=croqnlj/ formatoptions-=t23b:undo_ftplugin ..= ' | setl cms< com< flp< fo<'24 25# Locate Hare modules.26&l:include = '\v^\s*use\s+%(\h\w*\s*\=)?'27&l:includeexpr = 'trim(v:fname, ":", 2)->substitute("::", "/", "g")'28setlocal isfname+=:29&l:path = ',,' .. hare#GetPath()30b:undo_ftplugin ..= ' | setl inc< inex< isf< pa<'31 32# Follow the official style guide by default.33if get(g:, 'hare_recommended_style', 1)34  setlocal noexpandtab35  setlocal shiftwidth=836  setlocal softtabstop=037  setlocal tabstop=838  setlocal textwidth=8039  b:undo_ftplugin ..= ' | setl et< sts< sw< ts< tw<'40endif41 42# Highlight incorrect whitespace outside of insert mode.43if get(g:, 'hare_space_error', 1)44  augroup HareSpaceError45    autocmd!46    autocmd InsertEnter * hi link hareSpaceError NONE47    autocmd InsertLeave * hi link hareSpaceError Error48  augroup END49endif50 51# vim: et sts=2 sw=2 ts=8 tw=8052 
codekingpro/portable-devtools · Team Ai