Skip to content

Gnarus-G/ts-node-jumps.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Easily jump between root level nodes in code. Thanks @nvim-treesitter.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages