Skip to content

How can I disable a specific file? #870

@tremby

Description

@tremby

I want to specifically disable compiler/typescript.vim, but not the rest of the Typescript plugin. That particular file does not behave in a way which works for me, and doesn't let me configure it into a state where it meets my needs.

The Polyglot docs say:

If you wish to use filetype detection by Vim Polyglot but you'd like to use your own syntax-highlighting plugin, you can append .plugin to disabled entry, like below. Disabling Vim Polyglot filetype plugin won't disable native Vim filetype plugin.

let g:polyglot_disabled = ['markdown.plugin']

I've tried setting it to ['typescript'] as a sanity check, and this works but disables more than I want.

I tried then to set it to ['typescript.compiler'] but this doesn't seem to work; I'm still getting makeprg set by that file.

Am I inferring the wrong solution from the docs (it's hard to tell where markdown.plugin was supposed to be inferred from -- I don't see for example a plugin/markdown.vim file), or is this not something which is supported?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions