From c4c6e5ebe15ece314036c81b3ae4e98a690d1903 Mon Sep 17 00:00:00 2001 From: Bruno Carlin Date: Wed, 15 Jun 2022 11:20:01 +0200 Subject: [PATCH] fix(nvim.lsp.html): enable html lsp for go html templates --- nvim/.config/nvim/lua/lsp/html.lua | 2 +- nvim/.config/nvim/lua/settings/go.lua | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nvim/.config/nvim/lua/lsp/html.lua b/nvim/.config/nvim/lua/lsp/html.lua index b0c7ddb..2727629 100644 --- a/nvim/.config/nvim/lua/lsp/html.lua +++ b/nvim/.config/nvim/lua/lsp/html.lua @@ -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" }, } diff --git a/nvim/.config/nvim/lua/settings/go.lua b/nvim/.config/nvim/lua/settings/go.lua index 4f8ce71..ce550b6 100644 --- a/nvim/.config/nvim/lua/settings/go.lua +++ b/nvim/.config/nvim/lua/settings/go.lua @@ -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 ]]