fix(nvim.lsp.html): enable html lsp for go html templates

This commit is contained in:
Bruno Carlin 2022-06-15 11:20:01 +02:00
parent bae5d77871
commit c4c6e5ebe1
2 changed files with 4 additions and 4 deletions

View file

@ -4,7 +4,7 @@ require('lspconfig').html.setup {
capabilities = common.cap, capabilities = common.cap,
on_attach = common.attach, on_attach = common.attach,
cmd = { "vscode-html-languageserver", "--stdio" }, cmd = { "vscode-html-languageserver", "--stdio" },
filetypes = { "html", "gotmpl", "handlebars" }, filetypes = { "html", "template", "handlebars" },
} }

View file

@ -1,8 +1,8 @@
vim.cmd [[ vim.cmd [[
augroup gocmd augroup gocmd
autocmd! autocmd!
autocmd FileType go setlocal ts=4 sts=4 sw=4 noexpandtab autocmd FileType go setlocal ts=4 sts=4 sw=4 noexpandtab
autocmd FileType gohtmltmpl setlocal ts=2 sts=2 sw=2 expandtab autocmd FileType template setlocal ts=2 sts=2 sw=2 expandtab
augroup END augroup END
]] ]]