typst stuff

This commit is contained in:
cscherr 2025-04-24 13:46:52 +02:00
parent 255bb78fa1
commit acfa1d98a0
Signed by: cscherrNT
GPG key ID: 8E2B45BC51A27EA7
3 changed files with 18 additions and 1 deletions

View file

@ -172,6 +172,9 @@ end, {
desc = 'Enable autoformat',
bang = true,
})
vim.api.nvim_create_user_command('TypstPinMain', function()
vim.lsp.buf.execute_command { command = 'tinymist.pinMain', arguments = { vim.api.nvim_buf_get_name(0) } }
end, { nargs = 0 })
-- autocommands
-- ===

View file

@ -140,7 +140,13 @@ local servers = {
-- tsserver = {},
--
tinymist = {},
tinymist = {
settings = {
formatterMode = 'typstyle',
exportPdf = 'never',
semanticTokens = 'disable',
},
},
html = {},
cssls = {},
clangd = {},

View file

@ -340,4 +340,12 @@ return {
}
end,
},
{
'chomosuke/typst-preview.nvim',
ft = 'typst',
version = '1.*',
opts = {
dependencies_bin = { ['tinymist'] = 'tinymist' }, -- use mason
}, -- lazy.nvim will implicitly calls `setup {}`
},
}