diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-01 16:08:51 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-01 16:08:51 +0900 |
| commit | 0d63047fda70ad0cacfe31bf0f903e17ca7399aa (patch) | |
| tree | f83a66b8e7168efc63b99a6c8622b1cbe0dfb763 /ar | |
| parent | 29b3b6af4b02136897f996b0b70166fcd19921f0 (diff) | |
modified plugins/markdown.lua
Diffstat (limited to 'ar')
| -rw-r--r-- | ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua index be3ee1d..82346b5 100644 --- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua +++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua @@ -190,9 +190,35 @@ return { }) end, keys = { - { "<leader>mp", "<cmd>MarkdownPreview<CR>", desc = "Markdown Preview" }, - { "<leader>mx", "<cmd>MarkdownPreviewStop<CR>", desc = "Markdown Stop" }, - { "<leader>md", "<cmd>MarkdownPreviewToggle<CR>", desc = "Markdown Toggle" }, + { "<leader>mp", "<cmd>MarkdownPreview<CR>", desc = "Markdown preview" }, + { "<leader>mx", "<cmd>MarkdownPreviewStop<CR>", desc = "Markdown stop" }, + { "<leader>md", "<cmd>MarkdownPreviewToggle<CR>", desc = "Markdown toggle" }, + }, + }, + { + "brianhuster/live-preview.nvim", + dependencies = { + -- You can choose one of the following pickers + "nvim-telescope/telescope.nvim", + -- "ibhagwan/fzf-lua", + -- "echasnovski/mini.pick", + }, + cmd = { "LivePreview start", "LivePreview close", "LivePreview pick", "LivePreview help" }, + init = function() + if vim.fn.executable("npx") then + vim.g.mkdp_filetypes = { "markdown" } + end + local wk = require("which-key") + wk.add({ + mode = { "n", "v" }, + { "<leader>ml", group = "Markdown live" }, + }) + end, + keys = { + { "<leader>mlp", "<cmd>LivePreview start<CR>", desc = "Markdown live preview" }, + { "<leader>mlx", "<cmd>LivePreview close<CR>", desc = "Markdown live close" }, + { "<leader>mlc", "<cmd>LivePreview pick<CR>", desc = "Markdown live pick" }, + { "<leader>mlh", "<cmd>LivePreview help<CR>", desc = "Markdown live help" }, }, }, { |
