iamcco / iamcco/markdown-preview.nvim

[question] How to write config file by lua?

Open
#504 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8k
Forks
411
PR merge metrics
No merged PRs in 30d

Description

I wrote config codes in `markdown.lua` file, as follows:
```lua
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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.