aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-06-11 08:44:44 +0200
committerChristian Clason <c.clason@uni-graz.at>2024-06-11 14:00:11 +0200
commitc06f3dbe3ee82bd8c9e5d8625b225a937a9e5e9e (patch)
treefcda5f4b41a1841ad94a2ea3928e04e3fd17c094 /runtime/ftplugin
parent04d3ad1deda3f865c0109e3ee54d7002d05d648b (diff)
downloadrneovim-c06f3dbe3ee82bd8c9e5d8625b225a937a9e5e9e.tar.gz
rneovim-c06f3dbe3ee82bd8c9e5d8625b225a937a9e5e9e.tar.bz2
rneovim-c06f3dbe3ee82bd8c9e5d8625b225a937a9e5e9e.zip
vim-patch:2d88210: runtime(kdl): include syntax, indent and ftplugin files
closes: vim/vim#14956 https://github.com/vim/vim/commit/2d88210b3c8516c30ed104054e5cdaef67880755 Co-authored-by: inzuo Jiang <jiangyinzuo@foxmail.com> Co-authored-by: Aram Drevekenin <aram@poor.dev>
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r--runtime/ftplugin/kdl.vim17
1 files changed, 17 insertions, 0 deletions
diff --git a/runtime/ftplugin/kdl.vim b/runtime/ftplugin/kdl.vim
new file mode 100644
index 0000000000..c9a1d8b185
--- /dev/null
+++ b/runtime/ftplugin/kdl.vim
@@ -0,0 +1,17 @@
+" Vim filetype plugin
+" Language: KDL
+" Author: Aram Drevekenin <aram@poor.dev>
+" Maintainer: Yinzuo Jiang <jiangyinzuo@foxmail.com>
+" Last Change: 2024-06-10
+
+if exists("b:did_ftplugin")
+ finish
+endif
+
+let b:did_ftplugin = 1
+
+setlocal comments=://
+setlocal commentstring=//\ %s
+setlocal formatoptions-=t
+
+let b:undo_ftplugin = 'setlocal comments< commentstring< formatoptions<'