You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Install the plugin from GitHub with your favourite neovim plugin manager.
10
-
With example configuration:
9
+
You can install `quarto-nvim`from GitHub with your favourite Neovim plugin manager
10
+
like [lazy.nvim](https://github.com/folke/lazy.nvim), [packer.nvim](https://github.com/wbthomason/packer.nvim) or [VimPlug](https://github.com/junegunn/vim-plug).
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.
96
-
97
-
## Configure
98
-
99
-
You can pass a lua table with options to the setup function.
100
-
It will be merged with the default options, which are shown below in the example:
40
+
It will be merged with the default options, which are shown below in the example.
41
+
If you want to use the defaults, simply call `setup` without arguments or with an empty table.
101
42
102
43
```lua
103
44
require'quarto'.setup{
104
45
debug=false,
105
46
closePreviewOnExit=true,
106
47
lspFeatures= {
107
-
enabled=false,
108
-
languages= { 'r', 'python', 'julia' },
48
+
enabled=true,
49
+
languages= { 'r', 'python', 'julia', 'bash'},
109
50
chunks='curly', -- 'curly' or 'all'
110
51
diagnostics= {
111
52
enabled=true,
112
-
triggers= { "BufWrite" }
53
+
triggers= { "BufWritePost" }
113
54
},
114
55
completion= {
115
-
enabled=false,
56
+
enabled=true,
116
57
},
117
58
},
118
59
keymap= {
@@ -122,7 +63,22 @@ require'quarto'.setup{
122
63
}
123
64
```
124
65
125
-
If you only need `QuartoPreview`, you don't have to call the setup function.
66
+
### Preview
67
+
68
+
Use the command
69
+
70
+
```vim
71
+
QuartoPreview
72
+
```
73
+
74
+
or access the function from lua, e.g. to create a keybinding:
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.
[[quarto-dev/quarto-nvim and jmbuhr/otter.nvim require Neovim version >= 0.9.0 (https://github.com/neovim/neovim/releases/tag/stable). Please upgrade to get access to the latest features and performance improvements.]]
0 commit comments