An open API service indexing awesome lists of open source software.

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

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)
```