Skip to content

zed-extensions/typst

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors