Closed nolleh closed 11 months ago
See #587 , thats the correct one
@gabyx I failed to find out reply menu for your comment.
and could you kindly tell me which point is incorrect?
it's looks like personal favor,,, ^^; tnx for opinon.
@gabyx but, after seeing your PR and seeing mkdp.vim file (the plugin command definition), It look's like other people may want to additional comment. user can use any of these command. (to handle below command.)
noremap <buffer> <silent> <Plug>MarkdownPreview :MarkdownPreview<CR>
noremap <buffer> <silent> <Plug>MarkdownPreviewStop :MarkdownPreviewStop<CR>
nnoremap <buffer> <silent> <Plug>MarkdownPreviewToggle :MarkdownPreviewToggle<CR>
So applied your opinion. ( both of our PR WAS actually not fully handle user needs ^^;) now fully handle, from now. 👍
This is what I'm using:
{
"iamcco/markdown-preview.nvim",
cmd = { "MarkdownPreviewToggle" },
ft = { "markdown" },
build = function() vim.fn["mkdp#util#install"]() end,
}, -- Markdown Preview
From what I understand, other than restarting neovim, no other change is required.
But when I do that and try :MarkdownPreview
it does not open preview window.
How do I fix this?
Where can I find logs?
This is what I'm using:
{
"iamcco/markdown-preview.nvim",
cmd = { "MarkdownPreviewToggle" },
ft = { "markdown" },
build = function() vim.fn["mkdp#util#install"]() end,
}, -- Markdown Preview
From what I understand, other than restarting neovim, no other change is required.
But when I do that and try :MarkdownPreview
it does not open preview window.
How do I fix this?
Where can I find logs?
This is what I'm using:
{ "iamcco/markdown-preview.nvim", cmd = { "MarkdownPreviewToggle" }, ft = { "markdown" }, build = function() vim.fn["mkdp#util#install"]() end, }, -- Markdown Preview
From what I understand, other than restarting neovim, no other change is required.
But when I do that and try
:MarkdownPreview
it does not open preview window.How do I fix this? Where can I find logs?
actually it is little far from PR's contents, but want it to help, I will reply :)
:MarkdownPreview
(look like there is some differences yours and mine in env.)in nvim(lua)
-- the path any where you want to write
vim.env.NVIM_MKDP_LOG_FILE = "/Users/nolleh/tmp/mkdp.log"
vim.env.NVIM_MKDP_LOG_LEVEL = "debug"
in my env, log remains like this. (after running :MarkdownPreview
)
2023-08-14 18:37:34 INFO (pid:43524) [app/server] - server run: 8672
2023-08-14 18:37:34 INFO (pid:43524) [app/server] - open page [default]: http://localhost:8672/page/1
2023-08-14 18:37:34 INFO (pid:43524) [app/server] - refresh page: 1
2023-08-14 18:37:34 INFO (pid:43524) [app/server] - client connect: mjrIp6OReWKVOwUTAAAA 1
hope this will help you.
add install description for lazy.nvim
description for lazy.nvim: