robin/laufey

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

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

master
1.1 KiB38 linesraw
1" Elixir filetype plugin
2" Language: HEEx
3" Maintainer:	Mitchell Hanberg <vimNOSPAM@mitchellhanberg.com>
4" Last Change: 2022 Sep 21
5" 2025 Apr 16 by Vim Project (set 'cpoptions' for line continuation, #17121)
6" 2026 Jun 27 by Vim Project (add recommended style guard)
7
8if exists("b:did_ftplugin")
9  finish
10endif
11let b:did_ftplugin = 1
12
13let s:cpo_save = &cpo
14set cpo&vim
15
16if get(g:, 'heex_recommended_style',
17      \ get(g:, 'filetype_recommended_style', 1))
18  setlocal shiftwidth=2 softtabstop=2 expandtab
19endif
20
21setlocal comments=:<%!--
22setlocal commentstring=<%!--\ %s\ --%>
23
24let b:undo_ftplugin = 'set sw< sts< et< com< cms<'
25
26" HTML: thanks to Johannes Zellner and Benji Fisher.
27if exists("loaded_matchit") && !exists("b:match_words")
28  let b:match_ignorecase = 1
29  let b:match_words = '<%\{-}!--:--%\{-}>,' ..
30	\	      '<:>,' ..
31	\	      '<\@<=[ou]l\>[^>]*\%(>\|$\):<\@<=li\>:<\@<=/[ou]l>,' ..
32	\	      '<\@<=dl\>[^>]*\%(>\|$\):<\@<=d[td]\>:<\@<=/dl>,' ..
33	\	      '<\@<=\([^/!][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>'
34  let b:undo_ftplugin ..= " | unlet! b:match_ignorecase b:match_words"
35endif
36
37let &cpo = s:cpo_save
38unlet s:cpo_save