vim-patch:8.2.4778: pacman files use dosini filetype (#18152)

Problem:    Pacman files use dosini filetype.
Solution:   Use conf instead. (Chaoren Lin, closes vim/vim#10213)
35cff32dd8
This commit is contained in:
Christian Clason
2022-04-17 23:30:13 +02:00
committed by GitHub
parent 6e6f5a7833
commit 1facad2347
3 changed files with 14 additions and 9 deletions

View File

@@ -103,6 +103,11 @@ local extension = {
cbl = "cobol",
atg = "coco",
recipe = "conaryrecipe",
hook = function(path, bufnr)
if getline(bufnr, 1) == '[Trigger]' then
return "conf"
end
end,
mklx = "context",
mkiv = "context",
mkii = "context",
@@ -903,7 +908,7 @@ local filename = {
Dockerfile = "dockerfile",
npmrc = "dosini",
["/etc/yum.conf"] = "dosini",
["/etc/pacman.conf"] = "dosini",
["/etc/pacman.conf"] = "conf",
[".npmrc"] = "dosini",
[".editorconfig"] = "dosini",
dune = "dune",
@@ -1182,7 +1187,7 @@ local pattern = {
[".*/etc/DIR_COLORS"] = "dircolors",
[".*/etc/dnsmasq%.conf"] = "dnsmasq",
["php%.ini%-.*"] = "dosini",
[".*/etc/pacman%.conf"] = "dosini",
[".*/etc/pacman%.conf"] = "conf",
[".*/etc/yum%.conf"] = "dosini",
[".*lvs"] = "dracula",
[".*lpe"] = "dracula",