mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 10:45:16 -07:00
vim-patch:94c1c66: runtime(tf): include tf ftplugin file
Adds ftplugin support for tf (TinyFugue). Comment support taken from [here](1e8ac0bb01/src/command.c (L568)
) closes: vim/vim#1516894c1c6638a
Co-authored-by: Riley Bruins <ribru17@hotmail.com>
This commit is contained in:
parent
97704a6694
commit
8aab46da5e
13
runtime/ftplugin/tf.vim
Normal file
13
runtime/ftplugin/tf.vim
Normal file
@ -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<'
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user