Installation
Prerequisites
Required
Recommended
- PDF viewer (system default)
- Nerd Font for icons
Install Typst
First, install the Typst binary:
Package Managers
1
2
3
4
5
6
7
8
| # macOS (Homebrew)
brew install typst
# Arch Linux
pacman -S typst
# Windows (Winget)
winget install --id Typst.Typst
|
From Source
1
| cargo install --locked typst-cli
|
Verify Installation
Install typstwriter.nvim
Using lazy.nvim (Recommended)
1
2
3
4
5
6
7
8
9
| {
"gl1tchc0d3r/typstwriter.nvim",
ft = { "typst" },
config = function()
require("typstwriter").setup({
-- Configuration options (see Configuration page)
})
end,
}
|
Using packer.nvim
1
2
3
4
5
6
| use {
"gl1tchc0d3r/typstwriter.nvim",
config = function()
require("typstwriter").setup()
end,
}
|
Using vim-plug
1
2
3
4
5
| Plug 'gl1tchc0d3r/typstwriter.nvim'
lua << EOF
require("typstwriter").setup()
EOF
|
Initial Setup
After installation, run the one-time setup and status check:
1
2
| :TypstWriter setup " Complete system setup
:TypstWriter status " Check system status
|
This will check:
- Typst binary installation
- PDF viewer availability
- Directory structure
- Template validation
Quick Test
- Create a test document:
-
Select a template and provide a title
- Compile the document:
If everything works, you should see a PDF open with your document!
Troubleshooting
Typst Binary Not Found
- Ensure
typst
is in your PATH
- Check installation with
typst --version
- On some systems, you may need to restart your terminal
PDF Won’t Open
- Install a PDF viewer (e.g.,
evince
, okular
, zathura
on Linux)
- Check your system’s default PDF handler
Templates Not Found
- The plugin will create default templates on first run
- Check
:TypstWriter status
for template directory location
Next Steps