Support gohtmltmpl/gotexttmpl

This commit is contained in:
Yasuhiro Matsumoto
2021-12-18 03:17:32 +09:00
committed by mattn
parent 2057fc1206
commit 8f1cd82262
2 changed files with 37 additions and 1 deletions

View File

@@ -300,6 +300,42 @@
}
}
],
"gohtmltmpl": [
{
"command": "gopls",
"requires": [
"go"
],
"root_uri_patterns": [
"go.mod"
],
"vim_plugin": {
"extensions": [
"tmpl",
"gotmpl"
],
"name": "mattn/vim-gotmpl"
}
}
],
"gotexttmpl": [
{
"command": "gopls",
"requires": [
"go"
],
"root_uri_patterns": [
"go.mod"
],
"vim_plugin": {
"extensions": [
"tmpl",
"gotmpl"
],
"name": "mattn/vim-gotmpl"
}
}
],
"graphql": [
{
"command": "graphql-language-server",

View File

@@ -12,7 +12,7 @@ augroup vim_lsp_settings_gopls
\ 'test': v:true,
\ },
\ }),
\ 'allowlist': lsp_settings#get('gopls', 'allowlist', ['go', 'gomod']),
\ 'allowlist': lsp_settings#get('gopls', 'allowlist', ['go', 'gomod', 'gohtmltmpl', 'gotexttmpl']),
\ 'blocklist': lsp_settings#get('gopls', 'blocklist', []),
\ 'config': lsp_settings#get('gopls', 'config', lsp_settings#server_config('gopls')),
\ 'workspace_config': lsp_settings#get('gopls', 'workspace_config', {}),