From 53e0ac0096c5a43bde21bab67f0e1c607b1a3ae6 Mon Sep 17 00:00:00 2001
From: Chris Grieser <73286100+chrisgrieser@users.noreply.github.com>
Date: Sat, 23 Dec 2023 18:38:37 +0100
Subject: [PATCH] docs: linting
---
README.md | 7 ++++---
lua/various-textobjs/charwise-textobjs.lua | 2 +-
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index 57f4b1d..0b541d5 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,8 @@
# nvim-various-textobjs 🟪🔷🟡
-
+
+
Bundle of more than two dozen new textobjects for Neovim.
@@ -452,7 +453,7 @@ end, { desc = "Delete Surrounding Indentation" })
### Yank Surrounding Indentation
Similarly, you can also create a `ysii` command to yank the two lines surrounding
-an indentation textobject. (We are not using `ysi`, since that blocks surround
+an indentation textobject. (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`.
@@ -465,7 +466,7 @@ vim.keymap.set("n", "ysii", function()
require("various-textobjs").indentation("outer", "outer")
local indentationFound = vim.fn.mode():find("V")
if not indentationFound then return end
- vim.cmd.normal({ "V", bang = true }) -- leave visual mode so the `'<` `'>` marks are set
+ vim.cmd.normal { "V", bang = true } -- leave visual mode so the `'<` `'>` marks are set
-- copy them into the + register
local startLn = vim.api.nvim_buf_get_mark(0, "<")[1] - 1
diff --git a/lua/various-textobjs/charwise-textobjs.lua b/lua/various-textobjs/charwise-textobjs.lua
index 954771b..8858d65 100644
--- a/lua/various-textobjs/charwise-textobjs.lua
+++ b/lua/various-textobjs/charwise-textobjs.lua
@@ -283,7 +283,7 @@ function M.url(lookForwL)
selectTextobj(pattern, "outer", lookForwL)
end
----see also https://github.com/chrisgrieser/nvim-various-textobjs/issues/26
+---see #26
---@param scope "inner"|"outer" inner excludes the leading dot
---@param lookForwL integer number of lines to look forward for the textobj
function M.chainMember(scope, lookForwL)