[feat] nvim: configure nvim-silicon
Allows me to easily take screenshots of my code
This commit is contained in:
parent
cc02c89661
commit
6bba09edf5
3 changed files with 25 additions and 2 deletions
|
@ -5,7 +5,7 @@ jobs:
|
|||
steps:
|
||||
- uses: https://code.forgejo.org/actions/checkout@v4
|
||||
- run: nix --version
|
||||
- run: nix flake check --keep-going
|
||||
- run: nix flake check --keep-going --verbose
|
||||
build:
|
||||
runs-on: nixos
|
||||
strategy:
|
||||
|
|
|
@ -135,7 +135,14 @@ in [
|
|||
{
|
||||
mode = "n";
|
||||
key = "<leader>w";
|
||||
action = mkRaw "require'conform'.format";
|
||||
action = mkRaw "require('conform').format";
|
||||
options.desc = "Format buffer";
|
||||
}
|
||||
# Nvim Silicon
|
||||
{
|
||||
mode = "v";
|
||||
key = "<leader>sc";
|
||||
action = mkRaw "require('nvim-silicon').clip";
|
||||
options.desc = "Snap Code (to clipboard)";
|
||||
}
|
||||
]
|
||||
|
|
|
@ -89,6 +89,22 @@ in {
|
|||
end
|
||||
-- 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
|
||||
'';
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue