Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
piersolenski committed Aug 17, 2024
1 parent 8bac856 commit 272c059
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ Install [ripgrep](https://github.com/BurntSushi/ripgrep).

## ⚙️ Configuration

`telescope-import.nvim` requires no configuration out of the box, but you can tweak it in the following ways:

```lua
require("telescope").setup({
extensions = {
Expand All @@ -51,8 +53,8 @@ require("telescope").setup({
extensions = { "js", "ts" },
-- The Vim filetypes
filetypes = { "vue" },
-- The global insert_at_line function can be overridden for specific languages
insert_at_line = 2 ---@type function|nil|number,
-- Optionally set a line other than 1
insert_at_line = 2 ---@type function|number,
-- The regex pattern for the import statement
regex = [[^(?:import(?:[\"'\s]*([\w*{}\n, ]+)from\s*)?[\"'\s](.*?)[\"'\s].*)]],
},
Expand Down

0 comments on commit 272c059

Please sign in to comment.