viniarck / telescope-tmuxdir.nvim

:open_file_folder: :zap: tmux session workspace plugin for nvim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

telescope-tmuxdir.nvim

📁⚡tmux session workspace plugin for nvim. (ported from tmuxdir.nvim)

telescope-tmuxdir workflow

  • You can manage tmux sessions and projects from nvim.
  • A project directory is identified with a root marker in a set of base directories (e.g.,~/repos/).
  • Each project is mapped to a tmux session, so a tmux session acts as a workspace.
  • You can have additional tmux sessions mapped to the same project if you want.

Installation

  • telescope-tmuxdir requires telescope.nvim
  • telescope-tmuxdir optionally uses fd

If you use vim-plug:

Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim'
Plug 'viniarck/telescope-tmuxdir.nvim'

Configuration

You need to set base_dirs and find_cmd:

telescope.setup{
  extensions = {
   tmuxdir = {
     base_dirs = {"~/repos"},
     find_cmd = {"fd", "-HI", "^.git$", "-d", "2"},
   }
  }
}

How to use

:Telescope tmuxdir sessions
:Telescope tmuxdir dirs

About

:open_file_folder: :zap: tmux session workspace plugin for nvim


Languages

Language:Lua 100.0%