Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

treesitter-textobjects

URL: https://github.com/nvim-treesitter/nvim-treesitter-textobjects/

Maintainers: Gaetan Lepage


Syntax-aware textobjects using tree-sitter.

Warning

Upstream refactored this plugin so textobject keymaps are no longer configured through require("nvim-treesitter.configs").setup({ textobjects = ... }). Define keymaps through Neovim’s keymap API instead, for example with nixvim’s top-level keymaps option and calls to require("nvim-treesitter-textobjects.<module>").

plugins.treesitter-textobjects.enable

Whether to enable treesitter-textobjects.

Type: boolean

Default:

false

Example:

true

Declared by:

plugins.treesitter-textobjects.package

The treesitter-textobjects package to use.

Type: package

Default:

pkgs.vimPlugins.nvim-treesitter-textobjects

Declared by:

plugins.treesitter-textobjects.autoLoad

Whether to automatically load treesitter-textobjects when neovim starts.

Type: boolean

Default: false when lazy-loading is enabled.

Example:

false

Declared by:

plugins.treesitter-textobjects.settings

Options provided to plugins.treesitter.settings.textobjects.

Type: lua value

Default:

{ }

Example:

{
  enable = true;
  lookahead = true;
}

Declared by: