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,
|
||||
on_attach = common.attach,
|
||||
cmd = { "vscode-html-languageserver", "--stdio" },
|
||||
filetypes = { "html", "gotmpl", "handlebars" },
|
||||
filetypes = { "html", "template", "handlebars" },
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
vim.cmd [[
|
||||
augroup gocmd
|
||||
autocmd!
|
||||
autocmd FileType go setlocal ts=4 sts=4 sw=4 noexpandtab
|
||||
autocmd FileType gohtmltmpl setlocal ts=2 sts=2 sw=2 expandtab
|
||||
autocmd!
|
||||
autocmd FileType go setlocal ts=4 sts=4 sw=4 noexpandtab
|
||||
autocmd FileType template setlocal ts=2 sts=2 sw=2 expandtab
|
||||
augroup END
|
||||
]]
|
||||
|
|
Loading…
Add table
Reference in a new issue