https://github.com/alx-sychev/telescope-tree-focus
Allows to pick directory and focus it in file tree
https://github.com/alx-sychev/telescope-tree-focus
neovim nvim-tree telescope
Last synced: 13 days ago
JSON representation
Allows to pick directory and focus it in file tree
- Host: GitHub
- URL: https://github.com/alx-sychev/telescope-tree-focus
- Owner: alx-sychev
- Created: 2025-03-14T14:54:37.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-14T15:10:10.000Z (about 1 year ago)
- Last Synced: 2025-03-14T16:23:52.480Z (about 1 year ago)
- Topics: neovim, nvim-tree, telescope
- Language: Lua
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# telescope-tree-focus
Simple neovim plugin that allows to pick directory and then focus it in file
tree.
Supports only nvim-tree.
## Dependencies
- [nvim-telescope/telescope.nvim](https://github.com/nvim-telescope/telescope.nvim)
- [nvim-tree/nvim-tree.lua](https://github.com/nvim-tree/nvim-tree.lua)
## Configuration
Minimal:
```lua
local ttf = require("telescope-tree-focus")
vim.keymap.set("n", "", ttf.open_picker)
```
With all options:
```lua
local ttf = require("telescope-tree-focus")
ttf.find_command = {
"fd",
"--hidden",
"--type",
"directory",
"--exclude",
".git",
}
ttf.prompt_title = "Find Directories"
ttf.expand_focused = true
vim.keymap.set("n", "", ttf.open_picker)
```