Files
neovim/init.lua
2026-10-06 17:47:38 -04:00

29 lines
576 B
Lua

require("config.lazy")
vim.filetype.add({
extension = {
zsh = "zsh",
},
filename = {
[".zshrc"] = "zsh",
[".zprofile"] = "zsh",
["zshrc"] = "zsh",
},
})
-- 1. Add custom filetype detection for Helm templates
vim.filetype.add({
pattern = {
-- Match any YAML or TPL file inside a 'templates' directory
['.*/templates/.*%.ya?ml'] = 'helm',
['.*/templates/.*%.tpl'] = 'helm',
['Chart%.ya?ml'] = 'helm',
['values%.ya?ml'] = 'helm',
},
})
vim.opt.tabstop = 2
vim.opt.shiftwidth = 2
vim.opt.expandtab = true
vim.opt.undofile = true