Skip to content

Latest commit

 

History

History
57 lines (42 loc) · 1.89 KB

README.md

File metadata and controls

57 lines (42 loc) · 1.89 KB

A Telescope plugin Template

A simple telescope plugin template, feel free to copy it

This repo is not for documenting every API Telescope provides, but you can familiar yourself with common used ones here.

Directory Structure

A Very Simple One

└── lua
    └── telescope
        └── _extensions         # The underscore is significant
            └─ plugin_name.lua  # Init and register your extension

A Complex One

.
└── lua
    └── telescope
        └── _extensions         # The underscore is significant
            └─ plugin_name.lua  # Require, init and register your extension
            └─ plugin_name
                └─ file1.lua
                └─ file2.lua

A More Complex One

.
└── lua
    ├── plugin_name             # Your actual plugin code
    │   ├── init.lua
    │   └── some_file.lua
    └── telescope
        └── _extensions         # The underscore is significant
            └─ plugin_name.lua  # Require, init and register your extension

Some Suggestions

if you are not familiar with lua:

Helpful Resources: