nvim config
This commit is contained in:
28
init.lua
Normal file
28
init.lua
Normal 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
|
||||
Reference in New Issue
Block a user