aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2025-01-12 11:42:02 +0100
committerChristian Clason <ch.clason+github@icloud.com>2025-01-12 12:01:24 +0100
commitbf58b757c4c2e1bf2a4afe4279150ca68a68691f (patch)
treeea396916389912ecaf7d9a52e4454130048d7a2d /runtime/lua/vim
parent1a8a48d7e5f8243aff0253a82f4214241eb877d6 (diff)
downloadrneovim-bf58b757c4c2e1bf2a4afe4279150ca68a68691f.tar.gz
rneovim-bf58b757c4c2e1bf2a4afe4279150ca68a68691f.tar.bz2
rneovim-bf58b757c4c2e1bf2a4afe4279150ca68a68691f.zip
vim-patch:9.1.1007: filetype: various ignore are not recognized
Problem: filetype: various ignore are not recognized Solution: detect rg/docker/npm/vvsce ignore files as 'gitgnore' filetype (Wu, Zhenyu) Not only prettier, but many programs also support ignore files (like rg, docker, npm, vscode). So use the gitignore filetype for them due to same syntax closes: vim/vim#16428 https://github.com/vim/vim/commit/8cbe2e0a0a78f57bb545a97695bfedd6a95e6992 Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r--runtime/lua/vim/filetype.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
index dee1bd88ca..bc866db399 100644
--- a/runtime/lua/vim/filetype.lua
+++ b/runtime/lua/vim/filetype.lua
@@ -1574,6 +1574,11 @@ local filename = {
['.gitmodules'] = 'gitconfig',
['.gitattributes'] = 'gitattributes',
['.gitignore'] = 'gitignore',
+ ['.ignore'] = 'gitignore',
+ ['.dockerignore'] = 'gitignore',
+ ['.npmignore'] = 'gitignore',
+ ['.rgignore'] = 'gitignore',
+ ['.vscodeignore'] = 'gitignore',
['gitolite.conf'] = 'gitolite',
['git-rebase-todo'] = 'gitrebase',
gkrellmrc = 'gkrellmrc',