feat(nvim): preview on save with tinymist
This commit is contained in:
parent
828352781f
commit
3dc638c827
3 changed files with 1 additions and 16 deletions
|
|
@ -2,11 +2,11 @@ return {
|
|||
filetypes = { 'typst' },
|
||||
settings = {
|
||||
formatterMode = 'typstyle',
|
||||
exportPdf = 'onSave',
|
||||
semanticTokens = 'disable',
|
||||
lint = {
|
||||
enabled = true,
|
||||
when = 'onType',
|
||||
-- when = 'onSave'
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -189,18 +189,4 @@ return {
|
|||
},
|
||||
event = 'LspAttach',
|
||||
},
|
||||
{
|
||||
'chomosuke/typst-preview.nvim',
|
||||
ft = 'typst',
|
||||
version = '1.*',
|
||||
opts = {
|
||||
open_cmd = ('%s %%s --new-window'):format(vim.env.BROWSER),
|
||||
invert_colors = 'auto',
|
||||
dependencies_bin = {
|
||||
tinymist = vim.fn.exepath('tinymist'),
|
||||
websocat = vim.fn.exepath('websocat'),
|
||||
},
|
||||
},
|
||||
keys = { { '<leader>t', '<cmd>TypstPreviewToggle<cr>' } },
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,7 +40,6 @@ in
|
|||
|
||||
# runtime/tools
|
||||
nodejs
|
||||
websocat
|
||||
luarocks
|
||||
tree-sitter
|
||||
nixfmt-tree
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue