Installation

Prerequisites

Required

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

1
typst --version

Install typstwriter.nvim

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:

Quick Test

  1. Create a test document:
    1
    
    :TypstWriter new
    
  2. Select a template and provide a title

  3. Compile the document:
    1
    
    :TypstWriter both
    

If everything works, you should see a PDF open with your document!

Troubleshooting

Typst Binary Not Found

PDF Won’t Open

Templates Not Found

Next Steps