diff options
Diffstat (limited to 'start/lspconfig-0.1.8/lua/lspconfig/server_configurations/templ.lua')
-rw-r--r-- | start/lspconfig-0.1.8/lua/lspconfig/server_configurations/templ.lua | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/templ.lua b/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/templ.lua new file mode 100644 index 0000000..99a4ada --- /dev/null +++ b/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/templ.lua @@ -0,0 +1,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')]], + }, + }, +} |