Compare commits

..

2 Commits

Author SHA1 Message Date
22e70f9725
feat: add typst support 2024-10-11 10:50:29 +02:00
6a6243fd90
which-key: fix typo in hint
+ format
2024-10-11 10:50:16 +02:00
3 changed files with 23 additions and 2 deletions

View File

@ -18,7 +18,7 @@ vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
{ noremap = true, silent = true, desc = "[M]arkdown to [S]ingle page [Y]ank" }) { noremap = true, silent = true, desc = "[M]arkdown to [S]ingle page [Y]ank" })
vim.keymap.set('', '<LocalLeader>my', ':w !pandoc -f markdown+emoji --wrap=none -t html5 | wl-copy --type text/html<CR><CR>', vim.keymap.set('', '<LocalLeader>my', ':w !pandoc -f markdown+emoji --wrap=none -t html5 | wl-copy --type text/html<CR><CR>',
{ noremap = true, silent = true, desc = "[M]arkdown to HTML [Y]ank" }) { noremap = true, silent = true, desc = "[M]arkdown to HTML [Y]ank" })
vim.keymap.set('', '<LocalLeader>mp', '<Plug>MarkdownPreviewToggle', { noremap = true, silent = true, desc = "[M]arkdown [Preview]" }) vim.keymap.set('', '<LocalLeader>mp', '<Plug>MarkdownPreviewToggle', { noremap = true, silent = true, desc = "[M]arkdown [P]review" })
end end
}) })
@ -60,3 +60,15 @@ vim.api.nvim_create_autocmd("FileType", {
require('spelling').spell_keymap() require('spelling').spell_keymap()
end, end,
}) })
-- Typst bindings
local typstgroup = vim.api.nvim_create_augroup("typst", { clear = true })
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" })
require('spelling').spell_keymap()
end,
})

View File

@ -301,5 +301,10 @@ require('lazy').setup({
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" }, cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
ft = { "markdown", "pandoc" }, ft = { "markdown", "pandoc" },
build = function() vim.fn["mkdp#util#install"]() end, build = function() vim.fn["mkdp#util#install"]() end,
},
{
'kaarmu/typst.vim',
ft = 'typst',
lazy = false,
} }
}, {}) }, {})

View File

@ -96,6 +96,7 @@ local servers = {
'norg', 'norg',
'gitcommit', 'gitcommit',
'rst', 'rst',
'typst'
}, },
ltex = { ltex = {
language = "auto", language = "auto",
@ -118,6 +119,9 @@ local servers = {
} }
} }
}, },
tinymist = {
exportPdf = "onType",
},
lua_ls = { lua_ls = {
Lua = { Lua = {
workspace = { checkThirdParty = false }, workspace = { checkThirdParty = false },