Skip to content

Latest commit

 

History

43 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typst Extension for Zed

Usage

To register the LSP and enable certain features (such as compile on save), add the following to your local (resp. server) configuration file (~/.zed/settings.json):

// In settings.json
{
	"lsp": {
		"tinymist": {
			"initialization_options": {
				// Enable background preview
				// Server will be running on 127.0.0.1:23635
				"preview": {
					"background": {
						"enabled": true,
					},
				},
			},

			"settings": {
				// Compile on save
				// This will compile a PDF for the `main.typ` file in the project root.
				"exportPdf": "onSave",
				"outputPath": "$root/$name",

				// Enable formatter
				"formatterMode": "typstyle",
			}
		}
	},

	"languages": {
		"Typst": {
			// Disable soft wrap
			"soft_wrap": "none",
		},
	},
}

To see all available options refer to the tinymist documentation. Beware that the configuration options displayed there apply to NeoVim, not Zed, so some might be incorrect or misleading

Components

About

Typst extension for zed

Resources

Stars

196 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages