markdown-preview.nvim icon indicating copy to clipboard operation
markdown-preview.nvim copied to clipboard

[question] How to write config file by lua?

Open ebynapura opened this issue 3 years ago • 1 comments

I wrote config codes in markdown.lua file, as follows:

require('markdown-preview').setup {
  vim.g.mkdp_browser = "C:/Program\ Files/Google/Chrome/Application/chrome.exe"
}

But it doesn't work, error as follows:

Error while calling lua chunk: ... /markdown.lua:2: '}' expected (to close '{' at line 1) near '='

I don't understand.

ebynapura avatar Sep 13 '22 06:09 ebynapura

Don't put in in a require('markdown-preview').setup {} block, just use:

vim.g.mkdp_browser = "C:/Program Files/Google/Chrome/Application/chrome.exe"

in your markdown.lua

g33kex avatar Sep 19 '22 16:09 g33kex