Skip to content

Commit

Permalink
feat: relative to git root and relative to custom dir(#2)
Browse files Browse the repository at this point in the history
* [ADD] git relative path

* [ADD] relgit actions

* [ADD] relative to source

* [FIX] fix some bugs

* [ADD] default source pattern

* [DOC] readme update

* [ADD] general functions

* [FIX] implementing comments for MR, using vim.fn.system to call git

---------

Co-authored-by: Noè Murr <[email protected]>
  • Loading branch information
NoeMurr and Noè Murr committed Jul 24, 2023
1 parent e12249d commit 35be675
Show file tree
Hide file tree
Showing 4 changed files with 500 additions and 226 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/styles.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Style checking

on: [push, pull_request]

jobs:
stylua:
name: StyLua
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Lint with stylua
uses: JohnnyMorganz/stylua-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --check .
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ Set of [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim) action
- Absolute path
- Relative path (to current working directory)
- Relative path (to buffer file)
- Relative to git root
- Relative to custom source direcotry

### Custom source directory
The custom source directory can be set using the method `require('telescope_insert_path').set_source_dir()`.

A default custom source directory can be set using the global option `telescope_insert_path_source_dir`.
In the case this option is set and present in the root of the project (git root or cwd) this will be used,
if the value does not exists or it's not a directory the root of the project will be used as default.

### Supported Insert Locations

Expand Down
Loading

0 comments on commit 35be675

Please sign in to comment.