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

go.mod files are set as modula2 filetype #848

Open
pbnj-dragon opened this issue Apr 14, 2024 · 1 comment
Open

go.mod files are set as modula2 filetype #848

pbnj-dragon opened this issue Apr 14, 2024 · 1 comment

Comments

@pbnj-dragon
Copy link

Does this bug happen when you install plugin without vim-polyglot?

N/A

Describe the bug:

When opening go.mod files, vim-polyglot sets the filetype as modula2

image

This is likely because file pattern for modula2 is *.MOD, which matches go.mod first before before the go.mod has a chance to be evaluated.

To Reproduce:

$ vim go.mod

Inside vim:

:verbose set ft?
@NgrNxk
Copy link

NgrNxk commented Jun 19, 2024

For me modula2 seems more obscure than golang, so:

let g:polyglot_disabled = ['modula2']

works well for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants