mirror of
https://github.com/jessebot/dot_files.git
synced 2025-10-01 01:48:43 +00:00
always use php syntax highlighting for php.tpl files
This commit is contained in:
parent
ffdce37002
commit
c7bf66dc90
1 changed files with 11 additions and 1 deletions
|
@ -61,6 +61,17 @@ vim.api.nvim_create_autocmd({"BufEnter", "BufWinEnter"}, {
|
|||
end,
|
||||
})
|
||||
|
||||
-- autocommand to set the file type to php if the extension is php.tpl
|
||||
vim.api.nvim_create_autocmd({"BufEnter", "BufWinEnter"}, {
|
||||
pattern = {
|
||||
"*.php.tpl",
|
||||
},
|
||||
callback = function()
|
||||
vim.cmd("set filetype=php")
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
-- autocommand to set the file type to helm based on files ending in tpl
|
||||
vim.api.nvim_create_autocmd({"BufEnter", "BufWinEnter"}, {
|
||||
pattern = {
|
||||
|
@ -73,7 +84,6 @@ vim.api.nvim_create_autocmd({"BufEnter", "BufWinEnter"}, {
|
|||
vim.cmd("set filetype=helm")
|
||||
end,
|
||||
})
|
||||
|
||||
-- autocommand to set the file type to cfg for wireguard configs
|
||||
vim.api.nvim_create_autocmd({"BufEnter", "BufWinEnter"}, {
|
||||
pattern = {"*/etc/wireguard/wg*.conf"},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue