diff options
author | Christian Clason <c.clason@uni-graz.at> | 2022-04-17 23:30:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-17 23:30:13 +0200 |
commit | 1facad23473eb2d045fe77199b3b0b9fd2586895 (patch) | |
tree | acc11ec054fd3c6031d745a4d4221e2be4d0a9b5 /runtime/lua/vim | |
parent | 6e6f5a783333d1bf9d6c719c896e72ac82e1ae54 (diff) | |
download | rneovim-1facad23473eb2d045fe77199b3b0b9fd2586895.tar.gz rneovim-1facad23473eb2d045fe77199b3b0b9fd2586895.tar.bz2 rneovim-1facad23473eb2d045fe77199b3b0b9fd2586895.zip |
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)
https://github.com/vim/vim/commit/35cff32dd82e5e2b72453b9f27d0655fc5b8a639
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r-- | runtime/lua/vim/filetype.lua | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 27a3366e0f..d8d4afb6c2 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -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", |