aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2025-01-20 22:45:47 +0100
committerChristian Clason <ch.clason+github@icloud.com>2025-01-23 09:42:20 +0100
commit8634bd46b26f28fa26950128b0cc585560bd6a9a (patch)
treea02b5a77a93183c56b7f51ea8edf95aa98eb952b /runtime/ftplugin
parent28998e1f8a9cdca27ada7030757b7a47e99ce5b6 (diff)
downloadrneovim-8634bd46b26f28fa26950128b0cc585560bd6a9a.tar.gz
rneovim-8634bd46b26f28fa26950128b0cc585560bd6a9a.tar.bz2
rneovim-8634bd46b26f28fa26950128b0cc585560bd6a9a.zip
vim-patch:9.1.1042: filetype: just files are not recognized
Problem: filetype: just files are not recognized Solution: adjust filetype detection pattern, detect just shebang line, include just ftplugin, indent and syntax plugin (Peter Benjamin) closes: vim/vim#16466 https://github.com/vim/vim/commit/72755b3c8e91ec90447969b736f080e0de36003d Co-authored-by: Peter Benjamin <petermbenjamin@gmail.com>
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r--runtime/ftplugin/just.vim17
1 files changed, 17 insertions, 0 deletions
diff --git a/runtime/ftplugin/just.vim b/runtime/ftplugin/just.vim
new file mode 100644
index 0000000000..6f2acddf96
--- /dev/null
+++ b/runtime/ftplugin/just.vim
@@ -0,0 +1,17 @@
+" Vim ftplugin file
+" Language: Justfile
+" Maintainer: Peter Benjamin <@pbnj>
+" Last Change: 2025 Jan 19
+" Credits: The original author, Noah Bogart <https://github.com/NoahTheDuke/vim-just/>
+
+" Only do this when not done yet for this buffer
+if exists("b:did_ftplugin")
+ finish
+endif
+let b:did_ftplugin = 1
+
+setlocal iskeyword+=-
+setlocal comments=n:#
+setlocal commentstring=#\ %s
+
+let b:undo_ftplugin = "setlocal iskeyword< comments< commentstring<"