typst stuff
This commit is contained in:
parent
255bb78fa1
commit
acfa1d98a0
3 changed files with 18 additions and 1 deletions
3
init.lua
3
init.lua
|
@ -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
|
||||
-- ===
|
||||
|
|
|
@ -140,7 +140,13 @@ local servers = {
|
|||
-- tsserver = {},
|
||||
--
|
||||
|
||||
tinymist = {},
|
||||
tinymist = {
|
||||
settings = {
|
||||
formatterMode = 'typstyle',
|
||||
exportPdf = 'never',
|
||||
semanticTokens = 'disable',
|
||||
},
|
||||
},
|
||||
html = {},
|
||||
cssls = {},
|
||||
clangd = {},
|
||||
|
|
|
@ -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 {}`
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue