Skip to content

Commit

Permalink
docs(readme): add troubleshooting section
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Feb 28, 2024
1 parent 2b788a1 commit 112a61b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ extension for [Manix](https://github.com/nix-community/manix)
- [Configuration](#configuration)
- [Usage](#usage)
- [Customisation](#customisation)
- [Troubleshooting](#troubleshooting)

## Features

Expand Down Expand Up @@ -103,3 +104,8 @@ require('telescope-manix').search(default_opts)
-- or
require('telescope').extensions.manix.manix(default_opts)
```

## Troubleshooting

If you are not seeing any search results,
you may need to run `manix --update-cache <query>`, to initialise the cache.
2 changes: 1 addition & 1 deletion lua/telescope-manix/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ manix.search = function(opts)
pickers
.new(opts, {
prompt_title = "Nix search",
finder = finders.new_oneshot_job(mk_manix_cmd(opts), opts),
finder = finders.new_oneshot_job(vim.print(mk_manix_cmd(opts)), opts),
sorter = config.generic_sorter(opts),
previewer = previewers.display_content.new(opts),
attach_mappings = attach_mappings,
Expand Down

0 comments on commit 112a61b

Please sign in to comment.