1
0
forked from extern/nix-config

neovim: Add typst support

Typst documents may be more maintainable long-term than traditional
documents in TeX format.
This commit is contained in:
Donovan Glover 2023-10-25 13:31:00 -04:00
parent 0577eb2dba
commit 44cc264f25
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -66,9 +66,13 @@ in
# lua # lua
lua-language-server lua-language-server
# tex # tex/typst
texlive.combined.scheme-full texlive.combined.scheme-full
texlab texlab
typst
typstfmt
typst-lsp
typst-live
]; ];
editorconfig = { editorconfig = {
@ -236,6 +240,11 @@ in
single_file_support = false single_file_support = false
} }
lspconfig.astro.setup {} lspconfig.astro.setup {}
lspconfig.typst_lsp.setup {
settings = {
exportPdf = "onSave"
}
}
vim.keymap.set('n', '<space>e', vim.diagnostic.open_float) vim.keymap.set('n', '<space>e', vim.diagnostic.open_float)
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev) vim.keymap.set('n', '[d', vim.diagnostic.goto_prev)
vim.keymap.set('n', ']d', vim.diagnostic.goto_next) vim.keymap.set('n', ']d', vim.diagnostic.goto_next)
@ -453,6 +462,7 @@ in
fcitx-vim fcitx-vim
vim-astro vim-astro
vim-svelte vim-svelte
typst-vim
]; ];
}; };