From 524dafc7d4ebee4b3e62ea9339d2cf6dbc1bbd0c Mon Sep 17 00:00:00 2001 From: Luca Zeuch Date: Sun, 20 Aug 2023 17:47:00 +0200 Subject: [PATCH 1/2] ftdetect: drop support for unnecessary file exts Drop support for unnecessary file extensions, as they are too long and/or confusing / redundant. Closes #79 Breaking Change: Support for the following file extensions will be dropped: * yagpdb * yagpdbcc * yag-cc * yagpdb-cc Signed-off-by: Luca Zeuch --- README.md | 11 +++++++++++ ftdetect/yagpdbcc.vim | 4 ---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a835c9f..7f30cdd 100644 --- a/README.md +++ b/README.md @@ -126,6 +126,17 @@ sources = cmp.config.sources({ ... }) ``` +### Supported File Extensions + +We support the following list of file extensions: + +- `*.yag` +- `*.yagcc` +- `*.tmpl` 1) +- `*.go.tmpl` 1) + +1) These extensions are not detected by default, as they are already used by Go. Please see below for instructions on how to +enable them. ### Overriding Filetypes diff --git a/ftdetect/yagpdbcc.vim b/ftdetect/yagpdbcc.vim index 6268920..a022cf6 100644 --- a/ftdetect/yagpdbcc.vim +++ b/ftdetect/yagpdbcc.vim @@ -31,11 +31,7 @@ set cpoptions&vim " Detect our 'own' extensions, which are usually used by a " vast majority of the userbase. au BufRead,BufNewFile *.yag setfiletype yagpdbcc -au BufRead,BufNewFile *.yagpdb setfiletype yagpdbcc au BufRead,BufNewFile *.yagcc setfiletype yagpdbcc -au BufRead,BufNewFile *.yag-cc setfiletype yagpdbcc -au BufRead,BufNewFile *.yagpdbcc setfiletype yagpdbcc -au BufRead,BufNewFile *.yagpdb-cc setfiletype yagpdbcc " Also use *.tmpl, *.gotmpl et al., which are originally only Go, if configured. " Here, we need to explicitly override the default syntax - "setfiletype" From b71dfb3b797c0d14761968bfff0c6305087890b9 Mon Sep 17 00:00:00 2001 From: Luca Zeuch Date: Sun, 20 Aug 2023 17:54:40 +0200 Subject: [PATCH 2/2] readme: satisfy markdown lint Signed-off-by: Luca Zeuch --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7f30cdd..e8c4447 100644 --- a/README.md +++ b/README.md @@ -126,6 +126,7 @@ sources = cmp.config.sources({ ... }) ``` + ### Supported File Extensions We support the following list of file extensions: @@ -135,8 +136,8 @@ We support the following list of file extensions: - `*.tmpl` 1) - `*.go.tmpl` 1) -1) These extensions are not detected by default, as they are already used by Go. Please see below for instructions on how to -enable them. +1) These extensions are not detected by default, as they are already used by Go. Please see below for +instructions on how to enable them. ### Overriding Filetypes