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