Docs: fix textobjects

This commit is contained in:
evakuator 2020-08-19 21:58:18 +06:00 committed by Kiyan Yazdani
parent 7f81df4409
commit 7e704852dc

View file

@ -211,6 +211,7 @@ similar to `ip` (inner paragraph) and `ap` (a paragraph).
lua <<EOF
require'nvim-treesitter.configs'.setup {
textobjects = {
enable = true,
select = {
enable = true,
keymaps = {
@ -243,6 +244,7 @@ like function parameters or arguments.
lua <<EOF
require'nvim-treesitter.configs'.setup {
textobjects = {
enable = true,
swap = {
enable = true,
swap_next = {
@ -267,7 +269,8 @@ or previous function.
lua <<EOF
require'nvim-treesitter.configs'.setup {
textobjects = {
move {
enable = true,
move = {
enable = true,
goto_next_start = {
["]m"] = "@function.outer",