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' },
|
filetypes = { 'typst' },
|
||||||
settings = {
|
settings = {
|
||||||
formatterMode = 'typstyle',
|
formatterMode = 'typstyle',
|
||||||
|
exportPdf = 'onSave',
|
||||||
semanticTokens = 'disable',
|
semanticTokens = 'disable',
|
||||||
lint = {
|
lint = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
when = 'onType',
|
when = 'onType',
|
||||||
-- when = 'onSave'
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -189,18 +189,4 @@ return {
|
||||||
},
|
},
|
||||||
event = 'LspAttach',
|
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
|
# runtime/tools
|
||||||
nodejs
|
nodejs
|
||||||
websocat
|
|
||||||
luarocks
|
luarocks
|
||||||
tree-sitter
|
tree-sitter
|
||||||
nixfmt-tree
|
nixfmt-tree
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue