Skip to content

Commit 62b52ec

Browse files
committed
update readme
1 parent 0750bdc commit 62b52ec

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ Plug 'quarto-dev/quarto-nvim'
2020

2121
## Usage
2222

23+
### Preview
24+
2325
Use the command
2426

2527
```vim
@@ -35,6 +37,22 @@ vim.keymap.set('n', '<leader>qp', quarto.quartoPreview, {silent = true, noremap
3537

3638
Then use the keyboard shortcut to open `quarto preview` for the current file or project in the active working directory in the neovim integrated terminal in a new tab.
3739

40+
### Language support
41+
42+
Enable code diagnostics for embedded languages with
43+
44+
```vim
45+
QuartoDiagnostics
46+
```
47+
48+
or
49+
50+
```vim
51+
lua require'quarto'.enableDiagnostics
52+
```
53+
54+
Diagnostics are enabled by default, but if you add a code chunk with a language that was not in the document when it was first opened, you have to reload the diagnostics once using the command.
55+
3856
## Configure
3957

4058
You can pass a lua table with options to the setup function.

0 commit comments

Comments
 (0)