add podman systemd files for database
This commit is contained in:
parent
f181cd388a
commit
742388c3ca
6 changed files with 44 additions and 2 deletions
|
|
@ -116,7 +116,7 @@ vim.filetype.add({
|
|||
mdx = "mdx",
|
||||
log = "log",
|
||||
conf = "conf",
|
||||
env = "dotenv",
|
||||
env = "dotenv"
|
||||
},
|
||||
-- Detect and apply filetypes based on the entire filename
|
||||
filename = {
|
||||
|
|
@ -131,5 +131,14 @@ vim.filetype.add({
|
|||
[".*%.blade%.php"] = "blade",
|
||||
[".*%.hurl.*"] = "hurl",
|
||||
[".*/hypr/.*%.conf"] = "hyprlang",
|
||||
['.*/systemd/.*%.(%a+)'] = function(path, bufnr, ext)
|
||||
vim.print(ext)
|
||||
local allowed = { "container", "volume", "network", "build", "pod", "kube" }
|
||||
for _, v in ipairs(allowed) do
|
||||
if v == ext then
|
||||
return "ini"
|
||||
end
|
||||
end
|
||||
end,
|
||||
},
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue