koenverburg/peepsight.nvim

github github
color
stars 108
issues 0
subscribers 3
forks 2
CREATED

2022-05-04

UPDATED

8 months ago


Peepsight

Working on a lot of code can be overwelming sometimes, so just focus on one function at the time. Peepsight is created to allow you to focus on a single function using treesitter.

asciicast

Installation

Make sure you are using Neovim (v0.7) or the latest Neovim nightly.

Using vim-plug

Plug 'koenverburg/peepsight.nvim'

Using dein

call dein#add('koenverburg/peepsight.nvim')

Using packer.nvim

use 'koenverburg/peepsight.nvim'

Setup

require('peepsight').setup({
  -- go
  "function_declaration",
  "method_declaration",
  "func_literal",

  -- typescript
  "class_declaration",
  "method_definition",
  "arrow_function",
  "function_declaration",
  "generator_function_declaration"
})

Usage

PeepsightEnable
PeepsightDisable

Alternatively you can start Peepsight with the Lua API:

local peepsight = require("peepsight")

peepsight.enable()
peepsight.disable()
peepsight.toggle()

Grammers

Related Projects