1
0

add gotmpl settings

This commit is contained in:
2025-03-14 22:27:46 +01:00
parent df72baf7b8
commit 73d2dc6774
4 changed files with 15 additions and 0 deletions

View File

@@ -14,6 +14,7 @@
- stylua - stylua
- luacheck - luacheck
- prettier - prettier
- prettier-plugin-go-template
- rust-analyzer - rust-analyzer
- shfmt - shfmt
- bash-language-server - bash-language-server

View File

@@ -80,6 +80,16 @@ vim.api.nvim_create_autocmd({ "VimEnter", "VimLeave" }, {
-- Filetypes to enable spellcheck -- Filetypes to enable spellcheck
local spell_types = { "text", "plaintex", "typst", "gitcommit", "markdown" } local spell_types = { "text", "plaintex", "typst", "gitcommit", "markdown" }
-- add gotmpl filetypes for blueprint repos
vim.filetype.add({
extension = {
gotmpl = "gotmpl",
},
pattern = {
[".*/recipes/.*%.ya?ml"] = "gotmpl",
},
})
-- Set global spell option to false initially to disable it for all file types -- Set global spell option to false initially to disable it for all file types
vim.opt.spell = false vim.opt.spell = false

View File

@@ -15,6 +15,7 @@ return {
"dockerfile", "dockerfile",
"gitignore", "gitignore",
"go", "go",
"gotmpl",
"java", "java",
"json", "json",
"lua", "lua",

View File

@@ -0,0 +1,3 @@
((text) @injection.content
(#set! injection.language "yaml")
(#set! injection.combined))