Fix templ

This commit is contained in:
Peter Stuifzand 2024-02-27 21:06:17 +01:00
parent 0029d3e512
commit 30eabd26cb
No known key found for this signature in database

View File

@ -555,9 +555,13 @@ require('lazy').setup({
tailwindcss = { tailwindcss = {
filetypes = { 'html', 'templ' }, filetypes = { 'html', 'templ' },
init_options = { init_options = {
includeLanguages = { templ = 'html' },
userLanguages = { templ = 'html' }, userLanguages = { templ = 'html' },
}, },
settings = {
includedLanguages = {
templ = 'html',
},
},
}, },
volar = {}, volar = {},
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
@ -650,11 +654,7 @@ require('lazy').setup({
-- You can use a sub-list to tell conform to run *until* a formatter -- You can use a sub-list to tell conform to run *until* a formatter
-- is found. -- is found.
-- javascript = { { "prettierd", "prettier" } }, -- javascript = { { "prettierd", "prettier" } },
templ = { templ = { 'templ' },
cmd = 'templ',
args = { 'fmt' },
stdin = true,
},
}, },
}, },
}, },
@ -839,7 +839,7 @@ require('lazy').setup({
-- Uncomment any of the lines below to enable them (you will need to restart nvim). -- Uncomment any of the lines below to enable them (you will need to restart nvim).
-- --
-- require 'kickstart.plugins.debug', -- require 'kickstart.plugins.debug',
-- require 'kickstart.plugins.indent_line', require 'kickstart.plugins.indent_line',
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua` -- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
-- This is the easiest way to modularize your config. -- This is the easiest way to modularize your config.