Skip to content

Commit

Permalink
refactor: rename to mder.nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
phanen committed Mar 8, 2024
1 parent 36b46df commit 96b9fd5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: panvimdoc
uses: kdheepak/panvimdoc@main
with:
vimdoc: toggle-checkbox.nvim
vimdoc: mder.nvim
version: "Neovim >= 0.8.0"
demojify: true
treesitter: true
Expand All @@ -58,7 +58,7 @@ jobs:
id: release
with:
release-type: simple
package-name: toggle-checkbox.nvim
package-name: mder.nvim
extra-files: |
lua/lazy/core/config.lua
- uses: actions/checkout@v3
Expand Down
8 changes: 4 additions & 4 deletions lua/toggle-checkbox/init.lua → lua/mder/init.lua
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
local toggle_line = require("toggle-checkbox.line").toggle_line
local getvpos = require("toggle-checkbox.utils").getvpos
local toggle_line = require("mder.line").toggle_line
local getvpos = require("mder.utils").getvpos

local toggle = function()
local line = function()
local vs, ve = getvpos()
local lines = vim.api.nvim_buf_get_lines(0, vs, ve, false)
vim.api.nvim_buf_set_lines(0, vs, ve, false, vim.iter(lines):map(toggle_line):totable())
end

return {
toggle = toggle,
line = line,
}
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/toggle_spec.lua → tests/line_spec.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local tl = require("toggle-checkbox.line").toggle_line
local tl = require("mder.line").toggle_line

describe("tests", function()
local asserter = function(tests)
Expand Down

0 comments on commit 96b9fd5

Please sign in to comment.