Skip to content

Commit

Permalink
Explicitely mention to load the extension
Browse files Browse the repository at this point in the history
closes #41
  • Loading branch information
weeman1337 committed May 20, 2024
1 parent a9949c1 commit 4122e14
Showing 1 changed file with 31 additions and 3 deletions.
34 changes: 31 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,15 @@ use {
},
},
config = function()
require("telescope").load_extension("live_grep_args")
local telescope = require("telescope")

-- first setup telescope
telescope.setup({
-- your config
})

-- then load the extension
telescope.load_extension("live_grep_args")
end
}
```
Expand All @@ -63,7 +71,15 @@ use {
{ "nvim-telescope/telescope-live-grep-args.nvim" },
},
config = function()
require("telescope").load_extension("live_grep_args")
local telescope = require("telescope")

-- first setup telescope
telescope.setup({
-- your config
})

-- then load the extension
telescope.load_extension("live_grep_args")
end
}
```
Expand All @@ -74,7 +90,15 @@ use {
Once live grep args is available as lua module, load the extension:

```
require("telescope").load_extension("live_grep_args")
local telescope = require("telescope")
-- first setup telescope
telescope.setup({
-- your config
})
-- then load the extension
telescope.load_extension("live_grep_args")
```
</details>

Expand Down Expand Up @@ -144,6 +168,10 @@ telescope.setup {
}
}
}

-- don't forget to load the extension
telescope.load_extension("live_grep_args")

```

This extension accepts the same options as `builtin.live_grep`, check out `:help live_grep` and `:help vimgrep_arguments` for more information. Additionally it also accepts `theme` and `layout_config`.
Expand Down

0 comments on commit 4122e14

Please sign in to comment.