diff options
-rw-r--r-- | runtime/filetype.vim | 6 | ||||
-rw-r--r-- | runtime/lua/vim/filetype.lua | 2 | ||||
-rw-r--r-- | src/nvim/testdir/test_filetype.vim | 2 |
3 files changed, 10 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 7469f86cf5..5a643803d3 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -405,6 +405,9 @@ au BufNewFile,BufRead configure.in,configure.ac setf config " Cooklang au BufNewFile,BufRead *.cook setf cook +" CSV Files +au BufNewFile,BufRead *.csv setf csv + " CUDA Compute Unified Device Architecture au BufNewFile,BufRead *.cu,*.cuh setf cuda @@ -2029,6 +2032,9 @@ au BufNewFile,BufReadPost *.tssop setf tssop " TSS - Command Line (temporary) au BufNewFile,BufReadPost *.tsscl setf tsscl +" TSV Files +au BufNewFile,BufRead *.tsv setf tsv + " Tutor mode au BufNewFile,BufReadPost *.tutor setf tutor diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 8e86812347..9ba036ca92 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -259,6 +259,7 @@ local extension = { fdr = 'csp', csp = 'csp', css = 'css', + csv = 'csv', con = 'cterm', feature = 'cucumber', cuh = 'cuda', @@ -974,6 +975,7 @@ local extension = { tsscl = 'tsscl', tssgm = 'tssgm', tssop = 'tssop', + tsv = 'tsv', tutor = 'tutor', twig = 'twig', ts = function(path, bufnr) diff --git a/src/nvim/testdir/test_filetype.vim b/src/nvim/testdir/test_filetype.vim index 5b3ed74d29..00ba548e97 100644 --- a/src/nvim/testdir/test_filetype.vim +++ b/src/nvim/testdir/test_filetype.vim @@ -128,6 +128,7 @@ let s:filename_checks = { \ 'csp': ['file.csp', 'file.fdr'], \ 'css': ['file.css'], \ 'cterm': ['file.con'], + \ 'csv': ['file.csv'], \ 'cucumber': ['file.feature'], \ 'cuda': ['file.cu', 'file.cuh'], \ 'cupl': ['file.pld'], @@ -563,6 +564,7 @@ let s:filename_checks = { \ 'tsscl': ['file.tsscl'], \ 'tssgm': ['file.tssgm'], \ 'tssop': ['file.tssop'], + \ 'tsv': ['file.tsv'], \ 'twig': ['file.twig'], \ 'typescript.glimmer': ['file.gts'], \ 'typescriptreact': ['file.tsx'], |