Skip to content

koenverburg/peepsight.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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