[feat] nvim: configure nvim-silicon
Some checks failed
/ check (push) Failing after 33s
/ build (docs) (push) Successful in 4s
/ build (nixosConfigurations.vm.config.system.build.toplevel) (push) Successful in 35s
/ build (nvim) (push) Successful in 22s

Allows me to easily take screenshots of my code
This commit is contained in:
Jalil David Salamé Messina 2024-06-16 22:05:56 +02:00
parent cc02c89661
commit 1464259ece
Signed by: jalil
GPG key ID: F016B9E770737A0B
2 changed files with 24 additions and 1 deletions

View file

@ -135,7 +135,14 @@ in [
{ {
mode = "n"; mode = "n";
key = "<leader>w"; key = "<leader>w";
action = mkRaw "require'conform'.format"; action = mkRaw "require('conform').format";
options.desc = "Format buffer"; options.desc = "Format buffer";
} }
# Nvim Silicon
{
mode = "v";
key = "<leader>sc";
action = mkRaw "require('nvim-silicon').clip";
options.desc = "Snap Code (to clipboard)";
}
] ]

View file

@ -89,6 +89,22 @@ in {
end end
-- END: Lua Pre Config -- END: Lua Pre Config
''; '';
extraConfigLua = ''
-- Lua Config
require("nvim-silicon").setup {
theme = "gruvbox-dark",
pad_horiz = 16,
pad_vert = 16,
-- Current buffer name
window_title = function()
return vim.fn.fnamemodify(
vim.api.nvim_buf_get_name(vim.api.nvim_get_current_buf()),
":t"
)
end,
}
-- END: Lua Config
'';
}) })
]; ];
} }