Skip to content

Commit

Permalink
misc(mkdp): Annotations and code fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
DrKJeff16 committed Jun 7, 2024
1 parent 075075b commit 6933459
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions lua/lazy_cfg/md_preview/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@ local empty = Check.value.empty
local augroup = vim.api.nvim_create_augroup
local au = vim.api.nvim_create_autocmd

---@type table<string, string|number|table>
local Fields = {
['mkdp_auto_start'] = 0,
['mkdp_browser'] = executable('firefox') and '/usr/bin/firefox' or '',
['mkdp_echo_preview_url'] = 1,
['mkdp_open_to_the_world'] = 0,
['mkdp_auto_close'] = 1,
['mkdp_preview_options'] = {
mkdp_auto_start = 0,
mkdp_browser = executable('firefox') and '/usr/bin/firefox' or '',
mkdp_echo_preview_url = 1,
mkdp_open_to_the_world = 0,
mkdp_auto_close = 1,
mkdp_preview_options = {
mkit = {},
katex = {},
uml = {},
Expand All @@ -37,8 +36,8 @@ local Fields = {
disable_filename = 0,
toc = {},
},
['mkdp_filetypes'] = { 'markdown' },
['mkdp_theme'] = 'dark',
mkdp_filetypes = { 'markdown' },
mkdp_theme = 'dark',
}

for k, v in next, Fields do
Expand Down

0 comments on commit 6933459

Please sign in to comment.