mirror of
https://github.com/jessebot/dot_files.git
synced 2025-10-01 01:48:43 +00:00
set filetype for tpl files in helm chart directories
This commit is contained in:
parent
8d51163e46
commit
b61a9ee363
2 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -234,7 +234,8 @@ local plugins = {
|
|||
-- {'dhruvasagar/vim-table-mode'},
|
||||
--
|
||||
{
|
||||
'towolf/vim-helm'
|
||||
'towolf/vim-helm',
|
||||
ft = {'helm'},
|
||||
},
|
||||
-- ---------------- Language Server Protocol Plugins ---------------------
|
||||
-- snippets
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue