sheerun / vim-polyglot

A solid language pack for Vim.
5.54k stars 292 forks source link

go.mod files are set as modula2 filetype #848

Open pbnj-dragon opened 2 months ago

pbnj-dragon commented 2 months ago

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 commented 2 weeks ago

For me modula2 seems more obscure than golang, so:

let g:polyglot_disabled = ['modula2']

works well for me.