From e750abee3ff55cae7967af4697202785e6dad7c6 Mon Sep 17 00:00:00 2001 From: Joeri de Gooijer Date: Mon, 25 Nov 2024 10:41:04 -0800 Subject: [PATCH] fix(ft): add htmlangular filetype to support newer nvim versions Neovim now detects the angular component files and sets `htmlangular` as the filetype. This caused coc-angular to not be loaded in the template files as it looked for the 'html' filetype. Retaining 'html' as well supports both older and newer configs. Fixes #78 --- src/client.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client.ts b/src/client.ts index f2e2c34..54d834e 100644 --- a/src/client.ts +++ b/src/client.ts @@ -51,6 +51,7 @@ export class AngularLanguageClient implements vscode.Disposable { // scheme: 'file' means listen to changes to files on disk only // other option is 'untitled', for buffer in the editor (like a new doc) {scheme: 'file', language: 'html'}, + {scheme: 'file', language: 'htmlangular'}, {scheme: 'file', language: 'typescript'}, ], synchronize: {