add gotmpl settings
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ return {
|
|||||||
"dockerfile",
|
"dockerfile",
|
||||||
"gitignore",
|
"gitignore",
|
||||||
"go",
|
"go",
|
||||||
|
"gotmpl",
|
||||||
"java",
|
"java",
|
||||||
"json",
|
"json",
|
||||||
"lua",
|
"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