feat(plugins): Add typst-preview
This commit is contained in:
@@ -63,7 +63,7 @@ vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = { "typst" },
|
||||
group = typstgroup,
|
||||
callback = function()
|
||||
vim.keymap.set('', '<LocalLeader>mp', ':TypstWatch<CR>', { noremap = true, silent = true, desc = "[M]ake [P]review" })
|
||||
vim.keymap.set('', '<LocalLeader>mp', ':TypstPreview<CR>', { noremap = true, silent = true, desc = "[M]ake [P]review" })
|
||||
vim.o.spell = true
|
||||
spell_keymap()
|
||||
vim.o.spelllang = "fr,en"
|
||||
|
@@ -369,6 +369,16 @@ require('lazy').setup({
|
||||
ft = 'typst',
|
||||
lazy = false,
|
||||
},
|
||||
{
|
||||
'chomosuke/typst-preview.nvim',
|
||||
lazy = false, -- or ft = 'typst'
|
||||
version = '1.*',
|
||||
opts = {
|
||||
dependencies_bin = {
|
||||
['tinymist'] = 'tinymist'
|
||||
}
|
||||
}, -- lazy.nvim will implicitly calls `setup {}`
|
||||
},
|
||||
-- oil.nvim
|
||||
{
|
||||
'stevearc/oil.nvim',
|
||||
|
Reference in New Issue
Block a user