[vim] Set commentstring for TableGen files (#182654)

Neovim supports [commenting and uncommenting
lines](https://neovim.io/doc/user/various.html#commenting) based on what
the 'commentstring' option is set to, but this isn't set for TableGen
files. The filetype plugin for C++ built into both vim and neovim sets
'commentstring' to `// %s`, so use that in the TableGen filetype plugin
as well.
This commit is contained in:
Henry Baba-Weiss
2026-02-24 04:33:30 -08:00
committed by GitHub
parent eff183b6a7
commit db9d0245d1

View File

@@ -10,3 +10,4 @@ let b:did_ftplugin = 1
setlocal matchpairs+=<:>
setlocal softtabstop=2 shiftwidth=2
setlocal expandtab
setlocal commentstring=//\ %s