diff options
author | Christian Clason <c.clason@uni-graz.at> | 2023-01-12 09:21:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-12 09:21:58 +0100 |
commit | 2aabe9b85870912b9eb8fe2ced0c21544de66f58 (patch) | |
tree | 7016249310e3771dce4a072013ddd106d3af4539 | |
parent | 143d3f1f3224bca02bfef7df0932b9d7524a3ff2 (diff) | |
download | rneovim-2aabe9b85870912b9eb8fe2ced0c21544de66f58.tar.gz rneovim-2aabe9b85870912b9eb8fe2ced0c21544de66f58.tar.bz2 rneovim-2aabe9b85870912b9eb8fe2ced0c21544de66f58.zip |
vim-patch:9.0.1182: go checksum files are not recognized (#21758)
Problem: go checksum files are not recognized.
Solution: Add the name of go checksum files. (Amaan Qureshi, closes vim/vim#11803)
https://github.com/vim/vim/commit/043d7b2c84cda275354aa023b5769660ea70a168
Co-authored-by: Amaan Q <amaanq12@gmail.com>
-rw-r--r-- | runtime/lua/vim/filetype.lua | 1 | ||||
-rw-r--r-- | src/nvim/testdir/test_filetype.vim | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index a6f40774d1..169285686a 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -1425,6 +1425,7 @@ local filename = { gnashpluginrc = 'gnash', gnashrc = 'gnash', ['.gnuplot'] = 'gnuplot', + ['go.sum'] = 'gosum', ['go.work'] = 'gowork', ['.gprc'] = 'gp', ['/.gnupg/gpg.conf'] = 'gpg', diff --git a/src/nvim/testdir/test_filetype.vim b/src/nvim/testdir/test_filetype.vim index 6b654bd032..6ec8fed9a6 100644 --- a/src/nvim/testdir/test_filetype.vim +++ b/src/nvim/testdir/test_filetype.vim @@ -232,6 +232,7 @@ let s:filename_checks = { \ 'gnuplot': ['file.gpi', '.gnuplot'], \ 'go': ['file.go'], \ 'gomod': ['go.mod'], + \ 'gosum': ['go.sum'], \ 'gowork': ['go.work'], \ 'gp': ['file.gp', '.gprc'], \ 'gpg': ['/.gnupg/options', '/.gnupg/gpg.conf', '/usr/any/gnupg/options.skel', 'any/.gnupg/gpg.conf', 'any/.gnupg/options', 'any/usr/any/gnupg/options.skel'], |