Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ftdetect: drop support for unnecessary file exts #80

Merged
merged 2 commits into from
Aug 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,18 @@ sources = cmp.config.sources({
})
```

### Supported File Extensions

We support the following list of file extensions:

- `*.yag`
- `*.yagcc`
- `*.tmpl` <sup>1)</sup>
- `*.go.tmpl` <sup>1)</sup>

<sup>1)</sup> 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

Sometimes, you may wish to use a file extension already in use by another language, such as `*.gotmpl`. Enable also
Expand Down
4 changes: 0 additions & 4 deletions ftdetect/yagpdbcc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading