Skip to content

Commit

Permalink
chore: prep for transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed May 31, 2024
1 parent 3ad4dd7 commit 8a32650
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<h2 align="center">charm-freeze.nvim</h3>
<h2 align="center">freeze.nvim</h3>
</p>

<p align="center">
Expand All @@ -14,9 +14,9 @@

```lua
{
'isabelroses/charm-freeze.nvim',
'charm-community/freeze.nvim',
config = function()
require('charm-freeze').setup({
require('freeze').setup({
command = "freeze",
output = function
return "./" .. os.date("%Y-%m-%d") .. "_freeze.png"
Expand All @@ -39,6 +39,6 @@ vim.api.nvim_set_keymap('v', '<leader>sc', '<cmd>Freeze<cr>', {})

This project is heavily inspired by [nvim-silicon](https://github.com/michaelrommel/nvim-silicon).

This also would not be possible without [charmbracelet/freeze][freeze].
This would not be possible without [charmbracelet/freeze][freeze].

[freeze]: https://github.com/charmbracelet/freeze
5 changes: 0 additions & 5 deletions default.nix

This file was deleted.

4 changes: 2 additions & 2 deletions lua/charm-freeze/init.lua → lua/freeze/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ M.start = function(args, options)
-- run the command and get the output
local ret = vim.fn.system(cmd, lines)
if string.find(ret, "WROTE") then
return vim.notify("File saved to" .. string.sub(ret, 8), vim.log.levels.INFO, { title = "charm-freeze.nvim" })
return vim.notify("File saved to" .. string.sub(ret, 8), vim.log.levels.INFO, { title = "freeze.nvim" })
else
return vim.notify("freeze returned: " .. ret, vim.log.levels.WARN, { title = "charm-freeze.nvim" })
return vim.notify("freeze returned: " .. ret, vim.log.levels.WARN, { title = "freeze.nvim" })
end
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ local T = MiniTest.new_set({
hooks = {
pre_case = function()
child.restart({ "-u", "tests/init.lua" })
child.lua([[P = require('charm-freeze')]])
child.lua([[P = require('freeze')]])
end,
-- Stop once all test cases are finished
post_once = child.stop,
Expand Down

0 comments on commit 8a32650

Please sign in to comment.