mirror of
https://github.com/isabelroses/nvim.git
synced 2025-04-09 13:29:34 +00:00
feat: use my sc tool
This commit is contained in:
parent
c6b16ee123
commit
230b301e06
4 changed files with 17 additions and 39 deletions
|
@ -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
9
plugins/charm-freeze.lua
Normal 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
|
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Add table
Reference in a new issue