blob: 99a4ada63b3532b3eabc046a2e9725c37882dff8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
local util = require 'lspconfig.util'
return {
default_config = {
cmd = { 'templ', 'lsp' },
filetypes = { 'templ' },
root_dir = function(fname)
return util.root_pattern('go.work', 'go.mod', '.git')(fname)
end,
},
docs = {
description = [[
https://templ.guide
The official language server for the templ HTML templating language.
]],
default_config = {
root_dir = [[root_pattern('go.work', 'go.mod', '.git')]],
},
},
}
|