Skip to content

[FEATURE] check for index file #1

Description

@jcger

Is your feature request related to a problem? Please describe.
Hi! Great plugin but if I try to load a path that is a folder, for example "../routes/home" it won't load as the exact file path is "../routes/home/index.js"

Describe the solution you'd like
I'd like to add the index route in the paths list with something like

call add(l:paths, simplify(getcwd() . '/' . l:cfile . '/index'))

It works for me but there might be something to take into account which I'm not aware of.

I'd be happy to send a PR but I've got no permissions

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