updates
This commit is contained in:
parent
63bbeaca3b
commit
ce01469113
37 changed files with 1621 additions and 384 deletions
41
home-manager/modules/neovim/plugins/glow.nix
Normal file
41
home-manager/modules/neovim/plugins/glow.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{pkgs, ...}: let
|
||||
stylePkg = pkgs.fetchFromGitHub {
|
||||
owner = "catppuccin";
|
||||
repo = "glamour";
|
||||
rev = "f410083af1e9b2418bcd73dbbbc987461d4aa292";
|
||||
hash = "sha256-a7yR19KcxIS4UPhuhB+X0B+s8D5eytw0/EB0X4z46kA=";
|
||||
};
|
||||
in {
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
glow = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
border = "single";
|
||||
style = "${stylePkg.outPath}/themes/catppuccin-latte.json";
|
||||
};
|
||||
};
|
||||
|
||||
which-key.settings.spec = [
|
||||
{
|
||||
__unkeyed = "<leader>p";
|
||||
mode = "n";
|
||||
group = "Preview";
|
||||
icon = " ";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>pg";
|
||||
action = "<cmd>Glow<CR>";
|
||||
options = {
|
||||
desc = "Glow (Markdown)";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue