This commit is contained in:
Hadi 2024-09-11 17:53:25 +02:00
parent 7f5e4a8e6d
commit 7904e497bd
5 changed files with 156 additions and 137 deletions

View File

@ -17,6 +17,7 @@ feel free to contribute <3 ([CONTRIBUTING.md](CONTRIBUTING.md))
- [ ] Keymaps:
- Trouble
- Tagbar (actually not working)
- Markdown
- [ ] Change my keyboard backlight
- Issue on nixos-hardware ig

View File

@ -717,6 +717,22 @@
"url": "https://devimages-cdn.apple.com/design/resources/download/NY.dmg"
}
},
"plugin-markdown": {
"flake": false,
"locked": {
"lastModified": 1725904000,
"narHash": "sha256-mbqX0+yGMjW3fHtDXVnVh6nUOG6waCW/sAXSQugc33Y=",
"owner": "MeanderingProgrammer",
"repo": "markdown.nvim",
"rev": "a5e2d0b1215814c3d033be1fd8eccf59ce366399",
"type": "github"
},
"original": {
"owner": "MeanderingProgrammer",
"repo": "markdown.nvim",
"type": "github"
}
},
"root": {
"inputs": {
"anotherhadi-portfolio": "anotherhadi-portfolio",
@ -728,6 +744,7 @@
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs_6",
"nixvim": "nixvim",
"plugin-markdown": "plugin-markdown",
"sops-nix": "sops-nix",
"spicetify-nix": "spicetify-nix"
}

View File

@ -32,6 +32,10 @@
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
hyprpanel.url = "github:Jas-SinghFSU/HyprPanel";
anotherhadi-portfolio.url = "github:anotherhadi/portfolio";
plugin-markdown = {
url = "github:MeanderingProgrammer/markdown.nvim";
flake = false;
};
};
outputs = inputs@{ nixpkgs, ... }: {

View File

@ -1,5 +1,13 @@
{
programs.nixvim.plugins = {
{ pkgs, inputs, ... }: {
programs.nixvim = {
extraPlugins = [
(pkgs.vimUtils.buildVimPlugin {
name = "markdown.nvim";
src = inputs.plugin-markdown;
})
];
extraConfigLua = "require('render-markdown').setup({})";
plugins = {
mkdnflow = {
enable = true;
mappings = {
@ -130,4 +138,5 @@
};
};
};
};
}

View File

@ -19,18 +19,6 @@
trouble.enable = true;
indent-blankline.enable = true;
which-key.enable = true;
headlines = {
enable = true;
settings = {
markdown = {
headline_highlights = [ "Headline1" "Headline" ];
fat_headlines = false;
bullets = [ "" "" "" "" ];
dash_string = "";
codeblock_highlight = "Headline";
};
};
};
nvim-colorizer.enable = true;
tagbar.enable = true; # FIXME: Tagbar is not working
};