aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Sentosa <gary.sentosa@gmail.com>2022-01-06 16:27:16 +0900
committerGregory Anders <greg@gpanders.com>2022-01-13 15:31:59 -0700
commit94d53589221567444bac2cf6a3692906259fe4c6 (patch)
tree00d694bd2975e84e20a0a379e92f53edc89d67ca
parent19864bd99529334909922e8d2a61a600fea7b29a (diff)
downloadrneovim-94d53589221567444bac2cf6a3692906259fe4c6.tar.gz
rneovim-94d53589221567444bac2cf6a3692906259fe4c6.tar.bz2
rneovim-94d53589221567444bac2cf6a3692906259fe4c6.zip
feat(filetype.lua): add support for tmux.conf files
-rw-r--r--runtime/lua/vim/filetype.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
index bf3e060ca6..87846f5eed 100644
--- a/runtime/lua/vim/filetype.lua
+++ b/runtime/lua/vim/filetype.lua
@@ -1038,6 +1038,7 @@ local filename = {
["tidy.conf"] = "tidy",
tidyrc = "tidy",
[".tidyrc"] = "tidy",
+ [".tmux.conf"] = "tmux",
["/.cargo/config"] = "toml",
Pipfile = "toml",
["Gopkg.lock"] = "toml",
@@ -1233,6 +1234,8 @@ local pattern = {
[".*/%.config/systemd/user/.*%.d/.*%.conf"] = "systemd",
[".*/etc/systemd/system/.*%.d/.*%.conf"] = "systemd",
[".*%.t%.html"] = "tilde",
+ ["%.?tmux.*%.conf"] = "tmux",
+ ["%.?tmux.*%.conf.*"] = { "tmux", { priority = -1 } },
[".*/%.cargo/config"] = "toml",
[".*/%.cargo/credentials"] = "toml",
[".*/etc/udev/udev%.conf"] = "udevconf",