aboutsummaryrefslogtreecommitdiffhomepage
path: root/vim/lua/plugins/init.lua
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-07-08 22:49:59 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-07-08 22:49:59 +0800
commitd834d6da82ba20e32699380d335a65936bad16f9 (patch)
tree49ce9f0427801c7803ed6c41633ae94821b2cc97 /vim/lua/plugins/init.lua
parenta86b98129c07ff6ac4e259d5e28499471f47e57c (diff)
Update
Diffstat (limited to 'vim/lua/plugins/init.lua')
-rw-r--r--vim/lua/plugins/init.lua11
1 files changed, 10 insertions, 1 deletions
diff --git a/vim/lua/plugins/init.lua b/vim/lua/plugins/init.lua
index 7cff057..373f4cc 100644
--- a/vim/lua/plugins/init.lua
+++ b/vim/lua/plugins/init.lua
@@ -191,8 +191,14 @@ return {
191 end, 191 end,
192 init = function() 192 init = function()
193 vim.g.mkdp_preview_options = { 193 vim.g.mkdp_preview_options = {
194 mkit = {}, 194 mkit = { breaks = true },
195 toc = {
196 containerClass = "toc",
197 format = "function format(x, htmlencode) { return `<span>${htmlencode(x)}</span>`; }",
198 callback = "console.log('foo')",
199 },
195 } 200 }
201 vim.cmd("let g:mkdp_browser = 'firefox'")
196 end, 202 end,
197 }, 203 },
198 204
@@ -283,6 +289,9 @@ return {
283 { 289 {
284 "tpope/vim-surround", 290 "tpope/vim-surround",
285 lazy = false, 291 lazy = false,
292 config = function()
293 vim.cmd("vmap s S")
294 end,
286 }, 295 },
287 296
288 { 297 {