set filetype for tpl files in helm chart directories

This commit is contained in:
JesseBot 2023-07-04 10:16:03 +02:00
parent 8d51163e46
commit b61a9ee363
2 changed files with 10 additions and 1 deletions

View file

@ -59,6 +59,14 @@ vim.api.nvim_create_autocmd({"BufEnter", "BufWinEnter"}, {
end,
})
-- autocommand to set the file type to helm based on files ending in tpl
vim.api.nvim_create_autocmd({"BufEnter", "BufWinEnter"}, {
pattern = {"*/charts/*/templates/*.tpl"},
callback = function()
vim.cmd("set filetype=helm")
end,
})
require('user.tree-sitter')
-- folding and indentation

View file

@ -234,7 +234,8 @@ local plugins = {
-- {'dhruvasagar/vim-table-mode'},
--
{
'towolf/vim-helm'
'towolf/vim-helm',
ft = {'helm'},
},
-- ---------------- Language Server Protocol Plugins ---------------------
-- snippets