OBS Work In Progress
File detection and syntax highlighting for typst.
require('packer').startup(function(use)
use {'kaarmu/typst.vim', ft = {'typ'}}
end)
- Restart neovim to reload config
- Call
:PackerSync
return {
'kaarmu/typst.vim',
ft = 'typ',
lazy=false,
}
call plug#begin('~/.vim/plugged')
Plug 'kaarmu/typst.vim'
call plug#end()
- Restart (neo)vim to reload config
- Call
:PlugInstall
(Currently)
- Compile the active document with
:make
. - Vim syntax highlighting.
(Planned)
- Vim highlighting is satisfactory.
- Even better highlighting for neovim using treesitter.
- ???
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!