fix(nvim.lsp.html): enable html lsp for go html templates
This commit is contained in:
parent
bae5d77871
commit
c4c6e5ebe1
2 changed files with 4 additions and 4 deletions
|
@ -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" },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,6 @@ 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
|
||||||
]]
|
]]
|
||||||
|
|
Loading…
Add table
Reference in a new issue