All Projects β†’ rmagatti β†’ session-lens

rmagatti / session-lens

Licence: MIT license
A session-switcher extension for rmagatti/auto-session using Telescope.nvim

Programming Languages

lua
6591 projects
Vim Script
2826 projects

Projects that are alternatives of or similar to session-lens

navigator.lua
Source code analysis & navigation plugin for Neovim. Navigate codes like a breeze🎐. Exploring LSP and 🌲Treesitter symbols a piece of 🍰. Take control like a boss 🦍.
Stars: ✭ 781 (+446.15%)
Mutual labels:  neovim-plugin
winshift.nvim
Rearrange your windows with ease.
Stars: ✭ 230 (+60.84%)
Mutual labels:  neovim-plugin
SimpleSnippets.vim
Simple snippet support for your Vim and Neovim
Stars: ✭ 86 (-39.86%)
Mutual labels:  neovim-plugin
AbbrevMan.nvim
🍍 A NeoVim plugin for managing vim abbreviations.
Stars: ✭ 82 (-42.66%)
Mutual labels:  neovim-plugin
onestatus
an api to customize tmux from vim
Stars: ✭ 82 (-42.66%)
Mutual labels:  neovim-plugin
critiq.vim
Github code reviews from Neovim
Stars: ✭ 69 (-51.75%)
Mutual labels:  neovim-plugin
nvim-highlite
A colorscheme template that is "lite" on logic for the developer.
Stars: ✭ 163 (+13.99%)
Mutual labels:  neovim-plugin
aerial.nvim
Neovim plugin for a code outline window
Stars: ✭ 485 (+239.16%)
Mutual labels:  neovim-plugin
feline.nvim
A minimal, stylish and customizable statusline for Neovim written in Lua
Stars: ✭ 867 (+506.29%)
Mutual labels:  neovim-plugin
bolt.nvim
⚑ Ultrafast multi-pane file manager for Neovim with fuzzy matching
Stars: ✭ 100 (-30.07%)
Mutual labels:  neovim-plugin
deoplete-solargraph
deoplete.nvim source for Ruby with solargraph.
Stars: ✭ 73 (-48.95%)
Mutual labels:  neovim-plugin
openrgb.nvim
Bring RGB to life in Neovim
Stars: ✭ 39 (-72.73%)
Mutual labels:  neovim-plugin
neuron.nvim
Make neovim the best note taking application
Stars: ✭ 340 (+137.76%)
Mutual labels:  neovim-plugin
nvim-gomove
A complete plugin for moving and duplicating blocks and lines, with complete fold handling, reindenting, and undoing in one go.
Stars: ✭ 142 (-0.7%)
Mutual labels:  neovim-plugin
cutlass.nvim
Plugin that adds a 'cut' operation separate from 'delete'
Stars: ✭ 78 (-45.45%)
Mutual labels:  neovim-plugin
denops-gh.vim
Vim/Neovim plugin for GitHub
Stars: ✭ 27 (-81.12%)
Mutual labels:  neovim-plugin
comment-box.nvim
✨ Clarify and beautify your comments using boxes and lines.
Stars: ✭ 91 (-36.36%)
Mutual labels:  neovim-plugin
stabilize.nvim
Neovim plugin to stabilize window open/close events.
Stars: ✭ 295 (+106.29%)
Mutual labels:  neovim-plugin
fzf-checkout.vim
Manage branches and tags with fzf
Stars: ✭ 187 (+30.77%)
Mutual labels:  neovim-plugin
hotpot.nvim
🍲 Carl Weathers #1 Neovim Plugin.
Stars: ✭ 183 (+27.97%)
Mutual labels:  neovim-plugin

Session Lens

Session Lens extends auto-session through Telescope.nvim, creating a simple session switcher with fuzzy finding capabilities.

Usage

You can call the switcher from telescope

:Telescope session-lens search_session

Or straight from the plugin's path with lua

:lua require('session-lens').search_session()

Installation

Any plugin manager should do.

Plug

" Plugin dependencies
Plug 'nvim-telescope/telescope.nvim'
Plug 'rmagatti/auto-session'

Plug 'rmagatti/session-lens'

See https://github.com/nvim-telescope/telescope.nvim for it's dependencies

Packer

use {
  'rmagatti/session-lens',
  requires = {'rmagatti/auto-session', 'nvim-telescope/telescope.nvim'},
  config = function()
    require('session-lens').setup({--[[your custom config--]]})
  end
}

The plugin is lazy loaded when calling it for the first time but you can pre-load it with Telescope like this if you'd rather have autocomplete for it off the bat.

require("telescope").load_extension("session-lens")

Configuration

Custom

Options can be set by calling the setup function, a common option is changing the shorten path behaviour.

require('session-lens').setup {
    path_display={'shorten'},
}

Another example would be changing how the dropdown looks, this can be done by setting the theme_conf in the setup opts. The options in theme_conf get passed into require('telescope.themes').get_dropdown(theme_conf), so anything supported by get_dropdown can be used here as well.

require('session-lens').setup {
  path_display = {'shorten'},
  theme_conf = { border = false },
  previewer = true
}

πŸ‘‡ Screen Shot 2021-04-17 at 9 17 43 PM

In addition to the above configs, since everything gets passed into telescope.builtin.find_files, any configs passed to the setup if supported by find_files will override the default behaviour, for example:

require('session-lens').setup {
    prompt_title = 'YEAH SESSIONS',
}

πŸ‘‡ Screen Shot 2021-04-17 at 8 16 49 PM

Commands

Session Lens exposes one command

  • :SearchSession triggers the customized session picker

Compatibility

Neovim > 0.5

Tested with:

NVIM v0.5.0-dev+a1ec36f
Build type: Release
LuaJIT 2.1.0-beta3
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].