Skip to content

iseri27/typst.vim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

typst.vim

OBS Work In Progress

File detection and syntax highlighting for typst.

Installation

packer.nvim

require('packer').startup(function(use)

    use {'kaarmu/typst.vim', ft = {'typ'}}

end)
  • Restart neovim to reload config
  • Call :PackerSync

lazy.nvim

return {
  'kaarmu/typst.vim',
  ft = 'typ',
  lazy=false,
}

vim-plug

call plug#begin('~/.vim/plugged')
    Plug 'kaarmu/typst.vim'
call plug#end()
  • Restart (neo)vim to reload config
  • Call :PlugInstall

Features

(Currently)

  • Compile the active document with :make.
  • Vim syntax highlighting.

(Planned)

  • Vim highlighting is satisfactory.
  • Even better highlighting for neovim using treesitter.
  • ???

Tips

If you are using neovim you can install typst-lsp. There exist a server configuration in nvim-lspconfig so it should be easy to set it up. The config currently requires that you're working in a git repo. Once the neovim+LSP recognizes the file the LSP will compile your document while you write (almost like a wysiwyg!). There is even no need to save!

About

Vim plugin for Typst

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%