diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-07-08 10:46:16 +0200 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2024-07-08 12:14:44 +0200 |
commit | 8aab46da5e5bd8737d0d90ec10faa09cee5448c7 (patch) | |
tree | 3b4da75d11eada9400647d98f0a346dd5b02752c | |
parent | 97704a6694a32373810652005c56677ef28e841d (diff) | |
download | rneovim-8aab46da5e5bd8737d0d90ec10faa09cee5448c7.tar.gz rneovim-8aab46da5e5bd8737d0d90ec10faa09cee5448c7.tar.bz2 rneovim-8aab46da5e5bd8737d0d90ec10faa09cee5448c7.zip |
vim-patch:94c1c66: runtime(tf): include tf ftplugin file
Adds ftplugin support for tf (TinyFugue). Comment support taken from
[here](https://github.com/kruton/tinyfugue/blob/1e8ac0bb014036c07bb3c679b0292ef20a6a0bb5/src/command.c#L568)
closes: vim/vim#15168
https://github.com/vim/vim/commit/94c1c6638a652cbe21b4d25ae5f26078e2e633d7
Co-authored-by: Riley Bruins <ribru17@hotmail.com>
-rw-r--r-- | runtime/ftplugin/tf.vim | 13 | ||||
-rw-r--r-- | runtime/lua/vim/filetype/detect.lua | 2 |
2 files changed, 14 insertions, 1 deletions
diff --git a/runtime/ftplugin/tf.vim b/runtime/ftplugin/tf.vim new file mode 100644 index 0000000000..1571d5e508 --- /dev/null +++ b/runtime/ftplugin/tf.vim @@ -0,0 +1,13 @@ +" Vim filetype plugin +" Language: tf (TinyFugue) +" Maintainer: Riley Bruins <ribru17@gmail.com> +" Last Change: 2024 Jul 06 + +if exists('b:did_ftplugin') + finish +endif +let b:did_ftplugin = 1 + +setl comments=:#,:; commentstring=;\ %s + +let b:undo_ftplugin = 'setl com< cms<' diff --git a/runtime/lua/vim/filetype/detect.lua b/runtime/lua/vim/filetype/detect.lua index e1891e299e..85c8d4c9dc 100644 --- a/runtime/lua/vim/filetype/detect.lua +++ b/runtime/lua/vim/filetype/detect.lua @@ -1597,7 +1597,7 @@ function M.tex(path, bufnr) end end --- Determine if a *.tf file is TF mud client or terraform +-- Determine if a *.tf file is TF (TinyFugue) mud client or terraform --- @type vim.filetype.mapfn function M.tf(_, bufnr) for _, line in ipairs(getlines(bufnr)) do |