Skip to content

Commit

Permalink
chore: remove some unneeded comments
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Dec 6, 2024
1 parent ac5793f commit 1872137
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lua/various-textobjs/textobjs/linewise.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ end

--------------------------------------------------------------------------------

-- next *closed* fold
---@param scope "inner"|"outer" outer adds one line after the fold
function M.closedFold(scope)
local startLnum = vim.api.nvim_win_get_cursor(0)[1]
Expand Down Expand Up @@ -61,7 +60,6 @@ function M.closedFold(scope)
if vim.v.operator == "y" then vim.cmd(("%d,%d foldclose"):format(foldStart, foldEnd)) end
end

---Textobject for the entire buffer content
function M.entireBuffer()
-- FIX folds at the first or last line cause lines being left out
local foldWasEnabled = vim.opt_local.foldenable:get() ---@diagnostic disable-line: undefined-field
Expand All @@ -84,7 +82,6 @@ function M.restOfParagraph()
if curLnum ~= lastLine then u.normal("k") end
end

---Md Fenced Code Block Textobj
---@param scope "inner"|"outer" inner excludes the backticks
function M.mdFencedCodeBlock(scope)
local cursorLnum = vim.api.nvim_win_get_cursor(0)[1]
Expand Down Expand Up @@ -132,14 +129,12 @@ function M.mdFencedCodeBlock(scope)
setLinewiseSelection(start, ending)
end

---lines visible in window textobj
function M.visibleInWindow()
local start = vim.fn.line("w0")
local ending = vim.fn.line("w$")
setLinewiseSelection(start, ending)
end

-- from cursor line to last visible line in window
function M.restOfWindow()
local start = vim.fn.line(".")
local ending = vim.fn.line("w$")
Expand Down

0 comments on commit 1872137

Please sign in to comment.