From 8a32650bd9180cf205e9b3e3d4dda226d269d32f Mon Sep 17 00:00:00 2001 From: isabel Date: Fri, 31 May 2024 21:06:28 +0100 Subject: [PATCH] chore: prep for transfer --- README.md | 8 ++++---- default.nix | 5 ----- lua/{charm-freeze => freeze}/init.lua | 4 ++-- tests/{charm-freeze => freeze}/test_all.lua | 2 +- 4 files changed, 7 insertions(+), 12 deletions(-) delete mode 100644 default.nix rename lua/{charm-freeze => freeze}/init.lua (98%) rename tests/{charm-freeze => freeze}/test_all.lua (97%) diff --git a/README.md b/README.md index 0a297c8..20ba4e8 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@

-

charm-freeze.nvim

+

freeze.nvim

@@ -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" @@ -39,6 +39,6 @@ vim.api.nvim_set_keymap('v', 'sc', 'Freeze', {}) 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 diff --git a/default.nix b/default.nix deleted file mode 100644 index e1d77c6..0000000 --- a/default.nix +++ /dev/null @@ -1,5 +0,0 @@ -{vimUtils, ...}: -vimUtils.buildVimPlugin { - name = "charm-freeze"; - src = ./.; -} diff --git a/lua/charm-freeze/init.lua b/lua/freeze/init.lua similarity index 98% rename from lua/charm-freeze/init.lua rename to lua/freeze/init.lua index f8b8048..4b82c47 100644 --- a/lua/charm-freeze/init.lua +++ b/lua/freeze/init.lua @@ -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 diff --git a/tests/charm-freeze/test_all.lua b/tests/freeze/test_all.lua similarity index 97% rename from tests/charm-freeze/test_all.lua rename to tests/freeze/test_all.lua index ed8431f..6b464c2 100644 --- a/tests/charm-freeze/test_all.lua +++ b/tests/freeze/test_all.lua @@ -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,