markdown-preview.nvim
markdown-preview.nvim copied to clipboard
[question] How to write config file by lua?
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.
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