nvim: add markup and typst support

This commit is contained in:
insects 2025-04-14 16:44:59 +02:00
parent cc39b20de7
commit a5d911e955
3 changed files with 34 additions and 0 deletions

View file

@ -48,6 +48,12 @@ return {
}, },
}, },
}, },
{
"nvim-treesitter/nvim-treesitter",
build = function()
require("nvim-treesitter.install").update({ with_sync = true })()
end,
},
{ {
"stevearc/conform.nvim", "stevearc/conform.nvim",
opts = { opts = {

View file

@ -0,0 +1,23 @@
-- Markup languages (mostly Markdown, TeX, and Typst)
return {
{
"OXY2DEV/markview.nvim",
lazy = false,
opts = {
preview = {
icon_provider = "mini",
},
},
},
{
"chomosuke/typst-preview.nvim",
lazy = false,
version = "1.*",
opts = {},
keys = {
{ "<leader>mpp", "<cmd>TypstPreview<cr>", desc = "Start preview", ft = "typst" },
{ "<leader>mpx", "<cmd>TypstPreviewStop", desc = "Stop preview", ft = "typst" },
},
},
}

View file

@ -19,6 +19,11 @@ return {
"<cmd>Telescope find_files<cr>", "<cmd>Telescope find_files<cr>",
desc = "Find files", desc = "Find files",
}, },
{
"<leader>ss",
"<cmd>Telescope current_buffer_fuzzy_find<cr>",
desc = "Search in buffer",
},
}, },
}, },
{ {