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

Detect original filetype ftdetect #156

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Sep 22, 2024

  1. subtype detection from native (n)vim method

    Detection and filetype setting are done in ftdetect scripts
    filetype is set to subtype.epuppet so ftplugin and syntax file loading
    is done by (n)vim owns scripts (ftplugin.vim and syntax/synload.vim)
    
    Added more test to detect if g:epuppet_default_subtype is defined in
    .vimrc
    shadowwa committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    aea78a9 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2024

  1. Add mention for on-demand loading with vim-plug

    If using
    ```
      'for': ['puppet', 'epuppet']
    ```
    vim-plug load ftdetect/puppet.vim, that set filetype to 'subtype.epuppet'
    then as this does not strictly match 'epuppet' vim-plug remove
    vim-puppet from &rtp and syntax and ftplugin file could not be loaded.
    The solution is to add a wildcard
    ```
      'for': ['puppet', '*epuppet']
    ```
    shadowwa committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    16b4abc View commit details
    Browse the repository at this point in the history