Skip to content

Commit

Permalink
docs: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Dec 23, 2023
1 parent c49b285 commit 53e0ac0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<!-- LTeX: enabled=false -->
# nvim-various-textobjs 🟪🔷🟡
<!-- LTeX: enabled=true -->
<a href="https://dotfyle.com/plugins/chrisgrieser/nvim-various-textobjs"><img src="https://dotfyle.com/plugins/chrisgrieser/nvim-various-textobjs/shield"/></a>
<a href="https://dotfyle.com/plugins/chrisgrieser/nvim-various-textobjs">
<img alt="badge" src="https://dotfyle.com/plugins/chrisgrieser/nvim-various-textobjs/shield"/></a>

Bundle of more than two dozen new textobjects for Neovim.

Expand Down Expand Up @@ -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`.
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lua/various-textobjs/charwise-textobjs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 53e0ac0

Please sign in to comment.