robin/laufey

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

zeertzjqvim-patch:54081f0: runtime(nix): set iskeyword and b:match_words in ftplugin (#33541)e4516a90b1

master
579 B21 linesraw
1" Vim filetype plugin
2" Language:    nix
3" Maintainer:  Keith Smiley <keithbsmiley@gmail.com>
4" Last Change: 2023 Jul 22
5" 2025 Apr 18 by Vim Project (set 'iskeyword' and b:match_words #17154)
6
7" Only do this when not done yet for this buffer
8if exists("b:did_ftplugin")
9  finish
10endif
11
12" Don't load another plugin for this buffer
13let b:did_ftplugin = 1
14
15let b:undo_ftplugin = "setl commentstring< comments< iskeyword< | unlet! b:match_words"
16
17let b:match_words = "\<if\>:\<then\>:\<else\>,\<let\>:\<in\>"
18
19setlocal comments=:#
20setlocal commentstring=#\ %s
21setlocal iskeyword+=-