add gotmpl settings
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
- stylua
|
||||
- luacheck
|
||||
- prettier
|
||||
- prettier-plugin-go-template
|
||||
- rust-analyzer
|
||||
- shfmt
|
||||
- bash-language-server
|
||||
|
||||
@@ -80,6 +80,16 @@ vim.api.nvim_create_autocmd({ "VimEnter", "VimLeave" }, {
|
||||
-- Filetypes to enable spellcheck
|
||||
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
|
||||
vim.opt.spell = false
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ return {
|
||||
"dockerfile",
|
||||
"gitignore",
|
||||
"go",
|
||||
"gotmpl",
|
||||
"java",
|
||||
"json",
|
||||
"lua",
|
||||
|
||||
3
nvim/.config/nvim/queries/gotmpl/injections.scm
Normal file
3
nvim/.config/nvim/queries/gotmpl/injections.scm
Normal file
@@ -0,0 +1,3 @@
|
||||
((text) @injection.content
|
||||
(#set! injection.language "yaml")
|
||||
(#set! injection.combined))
|
||||
Reference in New Issue
Block a user