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" })
|
{ 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,
|
||||||
|
})
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ require('lazy').setup({
|
|||||||
},
|
},
|
||||||
|
|
||||||
-- DAP: Debug Adapter Protocol
|
-- DAP: Debug Adapter Protocol
|
||||||
'mfussenegger/nvim-dap',
|
'mfussenegger/nvim-dap',
|
||||||
|
|
||||||
{
|
{
|
||||||
-- Autocompletion
|
-- Autocompletion
|
||||||
@ -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,
|
||||||
}
|
}
|
||||||
}, {})
|
}, {})
|
||||||
|
@ -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 },
|
||||||
|
Loading…
Reference in New Issue
Block a user