Skip to content

Commit

Permalink
docs: remove some outdated references
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Dec 7, 2024
1 parent 44f0c2a commit 4951f1d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,9 @@ use {
}
```

**Variant 2:** Use your own keybindings. See the [Configuration](#configuration)
section for information on setting your own keymaps.
**Variant 2:** Use your own keybindings. See the
[Configuration](#use-your-own-keybindings) section for information on how to set
your own keymaps.

```lua
-- lazy.nvim
Expand Down Expand Up @@ -150,7 +151,7 @@ require("various-textobjs").setup {
textobjs = {
indentation = {
-- `false`: only indentation decreases delimit the text object
-- `true`: indentation decreases as well as blank lines delimit the text object
-- `true`: indentation decreases as well as blank lines serve as delimiter
blanksAreDelimiter = false,
},
subword = {
Expand Down Expand Up @@ -333,8 +334,7 @@ end, { desc = "Delete Surrounding Indentation" })
Similarly, you can also create a `ysii` command to yank the two lines surrounding
an indentation text object. (Not using `ysi`, since that blocks surround
commands like `ysi)`). Using `nvim_win_[gs]et_cursor()`, you make the
operation sticky, meaning the cursor is not moved. `vim.highlight.range` is
used to highlight the yanked text, to imitate the effect of `vim.highlight.yank`.
operation sticky, meaning the cursor is not moved.

```lua
vim.keymap.set("n", "ysii", function()
Expand Down Expand Up @@ -397,9 +397,7 @@ page](https://github.com/chrisgrieser/nvim-various-textobjs/discussions).
## Other text object plugins
- [treesitter-textobjects](https://github.com/nvim-treesitter/nvim-treesitter-textobjects)
- [treesitter-textsubjects](https://github.com/RRethy/nvim-treesitter-textsubjects)
- [ts-hint-textobject](https://github.com/mfussenegger/nvim-ts-hint-textobject)
- [mini.ai](https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-ai.md)
- [targets.vim](https://github.com/wellle/targets.vim)

## Credits
**Thanks**
Expand Down
2 changes: 1 addition & 1 deletion lua/various-textobjs/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ local defaultConfig = {
textobjs = {
indentation = {
-- `false`: only indentation decreases delimit the text object
-- `true`: indentation decreases as well as blank lines delimit the text object
-- `true`: indentation decreases as well as blank lines serve as delimiter
blanksAreDelimiter = false,
},
subword = {
Expand Down

0 comments on commit 4951f1d

Please sign in to comment.