Compare commits
2 Commits
9299b58212
...
22e70f9725
Author | SHA1 | Date | |
---|---|---|---|
22e70f9725 | |||
6a6243fd90 |
@ -18,7 +18,7 @@ vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
|
||||
{ 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>',
|
||||
{ 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
|
||||
})
|
||||
|
||||
@ -60,3 +60,15 @@ vim.api.nvim_create_autocmd("FileType", {
|
||||
require('spelling').spell_keymap()
|
||||
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,
|
||||
})
|
||||
|
||||
|
@ -28,7 +28,7 @@ require('lazy').setup({
|
||||
},
|
||||
|
||||
-- DAP: Debug Adapter Protocol
|
||||
'mfussenegger/nvim-dap',
|
||||
'mfussenegger/nvim-dap',
|
||||
|
||||
{
|
||||
-- Autocompletion
|
||||
@ -301,5 +301,10 @@ require('lazy').setup({
|
||||
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
|
||||
ft = { "markdown", "pandoc" },
|
||||
build = function() vim.fn["mkdp#util#install"]() end,
|
||||
},
|
||||
{
|
||||
'kaarmu/typst.vim',
|
||||
ft = 'typst',
|
||||
lazy = false,
|
||||
}
|
||||
}, {})
|
||||
|
@ -96,6 +96,7 @@ local servers = {
|
||||
'norg',
|
||||
'gitcommit',
|
||||
'rst',
|
||||
'typst'
|
||||
},
|
||||
ltex = {
|
||||
language = "auto",
|
||||
@ -118,6 +119,9 @@ local servers = {
|
||||
}
|
||||
}
|
||||
},
|
||||
tinymist = {
|
||||
exportPdf = "onType",
|
||||
},
|
||||
lua_ls = {
|
||||
Lua = {
|
||||
workspace = { checkThirdParty = false },
|
||||
|
Loading…
Reference in New Issue
Block a user