mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
Docs: fix textobjects
This commit is contained in:
parent
7f81df4409
commit
7e704852dc
1 changed files with 4 additions and 1 deletions
|
|
@ -211,6 +211,7 @@ similar to `ip` (inner paragraph) and `ap` (a paragraph).
|
||||||
lua <<EOF
|
lua <<EOF
|
||||||
require'nvim-treesitter.configs'.setup {
|
require'nvim-treesitter.configs'.setup {
|
||||||
textobjects = {
|
textobjects = {
|
||||||
|
enable = true,
|
||||||
select = {
|
select = {
|
||||||
enable = true,
|
enable = true,
|
||||||
keymaps = {
|
keymaps = {
|
||||||
|
|
@ -243,6 +244,7 @@ like function parameters or arguments.
|
||||||
lua <<EOF
|
lua <<EOF
|
||||||
require'nvim-treesitter.configs'.setup {
|
require'nvim-treesitter.configs'.setup {
|
||||||
textobjects = {
|
textobjects = {
|
||||||
|
enable = true,
|
||||||
swap = {
|
swap = {
|
||||||
enable = true,
|
enable = true,
|
||||||
swap_next = {
|
swap_next = {
|
||||||
|
|
@ -267,7 +269,8 @@ or previous function.
|
||||||
lua <<EOF
|
lua <<EOF
|
||||||
require'nvim-treesitter.configs'.setup {
|
require'nvim-treesitter.configs'.setup {
|
||||||
textobjects = {
|
textobjects = {
|
||||||
move {
|
enable = true,
|
||||||
|
move = {
|
||||||
enable = true,
|
enable = true,
|
||||||
goto_next_start = {
|
goto_next_start = {
|
||||||
["]m"] = "@function.outer",
|
["]m"] = "@function.outer",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue