Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 724 Bytes

README.md

File metadata and controls

25 lines (22 loc) · 724 Bytes

ts-node-jumps.nvim

Easily jump between root level nodes in code.

Install

With packer.nvim

use {
  'gnarus-g/ts-node-jumps.nvim',
  requires = {
    "nvim-treesitter/nvim-treesitter"
  }
}

Usage

local node_jumps = require "ts-node-jumps"

vim.keymap.set("n", "<up>", node_jumps.go_to_prev)
vim.keymap.set("n", "<down>", node_jumps.go_to_next)

Keymaps

Up or Down to jump one node.
Add a count before the keystroke to modify how much to jump; e.g 3Up
simplescreenrecorder-2022-08-26_20 35 39