feat(plugins): add markdown preview
This commit is contained in:
parent
b40e4d33e4
commit
a9ff9ef5dc
2 changed files with 32 additions and 0 deletions
31
plugins/markdown-preview.nix
Normal file
31
plugins/markdown-preview.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
# homepage: https://github.com/iamcco/markdown-preview.nvim
|
||||
# nixvim doc: https://nix-community.github.io/nixvim/plugins/markdown-preview/index.html
|
||||
_:
|
||||
|
||||
{
|
||||
opts = {
|
||||
enable = true;
|
||||
settings.auto_close = false;
|
||||
};
|
||||
|
||||
rootOpts.keymaps = [
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>mp";
|
||||
action = "<cmd>MarkdownPreview<cr>";
|
||||
options.desc = "Start Markdown preview";
|
||||
}
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>ms";
|
||||
action = "<cmd>MarkdownPreviewStop<cr>";
|
||||
options.desc = "Stop Markdown preview";
|
||||
}
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>mt";
|
||||
action = "<cmd>MarkdownPreviewToggle<cr>";
|
||||
options.desc = "Toggle Markdown preview";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
@ -23,6 +23,7 @@
|
|||
"<leader>f".name = "${icons.Search} Find";
|
||||
"<leader>g".name = "${icons.Git} Git";
|
||||
"<leader>l".name = "${icons.ActiveLSP} Language Tools";
|
||||
"<leader>m".name = " Markdown";
|
||||
"<leader>s".name = "${icons.Session} Session";
|
||||
"<leader>t".name = "${icons.Terminal} Terminal";
|
||||
"<leader>u".name = "${icons.Window} UI/UX";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue