nvim config

This commit is contained in:
2026-10-06 17:47:38 -04:00
commit 580986ce5b
16 changed files with 445 additions and 0 deletions

28
init.lua Normal file
View File

@@ -0,0 +1,28 @@
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