Skip to content

Commit

Permalink
chore: improve some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Dec 6, 2024
1 parent a41e4d1 commit 3ab71f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ require("various-textobjs").setup {
-- extra configuration for specific text objects
textobjs = {
indentation = {
-- `false`: only indentation changes delimit the text object
-- `true`: indentation changes as well as blank lines delimit the text object
-- `false`: only indentation decreases delimit the text object
-- `true`: indentation decreases as well as blank lines delimit the text object
blanksAreDelimiter = false,
},
subword = {
Expand Down
4 changes: 3 additions & 1 deletion lua/various-textobjs/textobjs/charwise.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ local u = require("various-textobjs.utils")
local forwardLooking = require("various-textobjs.config").config.forwardLooking
--------------------------------------------------------------------------------

-- warn in case user tries to call a textobj that doesn't exist
-- Warn in case user tries to call a textobj that doesn't exist.
-- (Only needed in the module for `charwise` text objects, since it is the catch
-- all for the `__index` redirect from this plugin's main `init.lua`.)
setmetatable(M, {
__index = function(_, key)
return function()
Expand Down

0 comments on commit 3ab71f4

Please sign in to comment.