feat: use my sc tool

This commit is contained in:
isabel 2024-03-27 10:43:26 +00:00
parent c6b16ee123
commit 230b301e06
No known key found for this signature in database
GPG key ID: 5A87C993E20D89A1
4 changed files with 17 additions and 39 deletions

View file

@ -6,6 +6,10 @@ src.git = "https://github.com/goolord/alpha-nvim"
fetch.github = "catppuccin/nvim"
src.git = "https://github.com/catppuccin/nvim"
[charm-freeze-nvim]
fetch.github = "isabelroses/charm-freeze.nvim"
src.git = "https://isabelroses/charm-freeze.nvim"
[cloak]
fetch.github = "laytan/cloak.nvim"
src.git = "https://github.com/laytan/cloak.nvim"
@ -132,10 +136,6 @@ src.git = "https://github.com/SmiteshP/nvim-navic"
fetch.github = "rcarriga/nvim-notify"
src.git = "https://github.com/rcarriga/nvim-notify"
[nvim-silicon]
fetch.github = "michaelrommel/nvim-silicon"
src.git = "https://github.com/michaelrommel/nvim-silicon"
[nvim-tree-lua]
fetch.github = "nvim-tree/nvim-tree.lua"
src.git = "https://github.com/nvim-tree/nvim-tree.lua"

9
plugins/charm-freeze.lua Normal file
View file

@ -0,0 +1,9 @@
return function()
local wk = require("which-key")
wk.register({
["<leader>sc"] = { ":Freeze<cr>", "Snapshot code" },
}, { mode = "v" })
require("charm-freeze").setup()
end

View file

@ -288,10 +288,10 @@ in rec {
paths = [pkgs.direnv];
};
nvim-silicon = {
src = srcs.nvim-silicon;
paths = [pkgs.silicon];
config = ./silicon.lua;
charm-freeze = {
src = srcs.charm-freeze-nvim;
# paths = [pkgs.charm-freeze];
config = ./charm-freeze.lua;
};
# lazygit integration

View file

@ -1,31 +0,0 @@
return function()
local wk = require("which-key")
wk.register({
["<leader>sc"] = { ":Silicon<cr>", "Snapshot code" },
}, { mode = "v" })
require("silicon").setup({
font = "RobotoMono Nerd Font=20",
theme = "Dracula",
background = "#74c7ec",
pad_vert = 80,
pad_horiz = 50,
command = "silicon",
output = function()
return "./" .. os.date("%Y-%m-%d") .. "_silicon.png"
end,
language = function()
return vim.bo.filetype
end,
window_title = function()
return vim.fn.fnamemodify(vim.api.nvim_buf_get_name(vim.api.nvim_get_current_buf()), ":t")
end,
})
end