From 97e6eb7e1e4a3d5110c5565883c73e2a345f7941 Mon Sep 17 00:00:00 2001 From: zackartz Date: Tue, 14 May 2024 20:54:43 -0400 Subject: [PATCH] 615 current 2024-05-14 20:54:38 24.05.20240512.2057814 6.8.6-zen1 * --- modules/home-manager/vim/config/lua/core/keymaps.lua | 6 ++++++ .../vim/config/lua/plugins/tools/freeze.lua | 12 ++++++++++++ .../home-manager/vim/config/lua/utils/functions.lua | 1 - modules/home-manager/vim/default.nix | 2 ++ modules/home-manager/vim/lazy-lock.json | 1 + 5 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 modules/home-manager/vim/config/lua/plugins/tools/freeze.lua diff --git a/modules/home-manager/vim/config/lua/core/keymaps.lua b/modules/home-manager/vim/config/lua/core/keymaps.lua index 9314b9d..8391fec 100644 --- a/modules/home-manager/vim/config/lua/core/keymaps.lua +++ b/modules/home-manager/vim/config/lua/core/keymaps.lua @@ -37,6 +37,12 @@ return { -- Neogit [l("ng")] = { cmd("Neogit"), fmt("Git", "Open Neogit") }, + -- Cloak + [l("ct")] = { cmd("CloakToggle"), "Cloak Toggle" }, + + -- Freeze + [l("sc")] = { cmd("freeze"), "Take code screenshot" }, + -- Rest [l("rr")] = { cmd("Rest run"), "Run request in Rest" }, diff --git a/modules/home-manager/vim/config/lua/plugins/tools/freeze.lua b/modules/home-manager/vim/config/lua/plugins/tools/freeze.lua new file mode 100644 index 0000000..47da5fd --- /dev/null +++ b/modules/home-manager/vim/config/lua/plugins/tools/freeze.lua @@ -0,0 +1,12 @@ +return { + "isabelroses/charm-freeze.nvim", + config = function() + require("charm-freeze").setup({ + command = "freeze", + output = function() + return "./" .. os.date("%Y-%m-%d") .. "_freeze.png" + end, + theme = "catppuccin-mocha", + }) + end, +} diff --git a/modules/home-manager/vim/config/lua/utils/functions.lua b/modules/home-manager/vim/config/lua/utils/functions.lua index ab4fc0b..1aeb802 100644 --- a/modules/home-manager/vim/config/lua/utils/functions.lua +++ b/modules/home-manager/vim/config/lua/utils/functions.lua @@ -126,7 +126,6 @@ M.open_dapui = function() end M.close_dapui = function() - require("neo-tree").show() require("dapui").close() end diff --git a/modules/home-manager/vim/default.nix b/modules/home-manager/vim/default.nix index f757327..926dda6 100644 --- a/modules/home-manager/vim/default.nix +++ b/modules/home-manager/vim/default.nix @@ -2,6 +2,7 @@ config, pkgs, lib, + inputs, ... }: let nvimDir = "/home/${config.home.username}/nixos/modules/home-manager/vim"; @@ -33,6 +34,7 @@ in { html-tidy cmake fzf + charm-freeze gcc gnumake nodejs diff --git a/modules/home-manager/vim/lazy-lock.json b/modules/home-manager/vim/lazy-lock.json index 81d5e6d..8578635 100644 --- a/modules/home-manager/vim/lazy-lock.json +++ b/modules/home-manager/vim/lazy-lock.json @@ -50,6 +50,7 @@ "nvim-ufo": { "branch": "main", "commit": "a5390706f510d39951dd581f6d2a972741b3fa26" }, "nvim-web-devicons": { "branch": "master", "commit": "e37bb1feee9e7320c76050a55443fa843b4b6f83" }, "overseer.nvim": { "branch": "master", "commit": "226789848772d99b3b61363b6ea7663882f8c05e" }, + "playground": { "branch": "master", "commit": "ba48c6a62a280eefb7c85725b0915e021a1a0749" }, "plenary.nvim": { "branch": "master", "commit": "08e301982b9a057110ede7a735dd1b5285eb341f" }, "promise-async": { "branch": "main", "commit": "93540c168c5ed2b030ec3e6c40ab8bbb85e36355" }, "rest.nvim": { "branch": "main", "commit": "f96edb54a2940322bc7ed81a1031be04db7d3a99" },