Skip to content

Commit

Permalink
Merge pull request #20 from pablopunk/fix-telescope
Browse files Browse the repository at this point in the history
fix error in telescope.open
  • Loading branch information
pablopunk authored Jan 25, 2024
2 parents 8ff4765 + b029786 commit d9956c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/unclutter/telescope.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ telescope.open = function(opts)
return
end

local tabline_buffers = require("unclutter").list()
local tabline_buffers = require("unclutter.tabline").list()

-- Sort the buffers by last used
table.sort(tabline_buffers, function(a, b)
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ require('unclutter.telescope').open()
Of course, you can map it to whatever you want:

```lua
vim.keymap.set("n", "<leader>b", require("unclutter").telescope, { noremap = true })
vim.keymap.set("n", "<leader>b", require("unclutter.telescope").open, { noremap = true })
```

![telescope integration](./art/telescope-integration.png)
Expand Down

0 comments on commit d9956c7

Please sign in to comment.