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:
parent
0577eb2dba
commit
44cc264f25
@ -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
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user