return{{"\109\097\114\107\118\105\101\119\046\110\118\105\109",lazy=false,after=function()local O=require("\109\097\114\107\118\105\101\119\046\112\114\101\115\101\116\115");(require("\109\097\114\107\118\105\101\119")).setup({preview={modes={"\110";"\105";"\110\111","\099"},hybrid_modes={"\105"},callbacks={on_enable=function(O,V)vim.wo[V].conceallevel=2 vim.wo[V].concealcursor="\110\099"end}};markdown_inline={checkboxes=O.checkboxes.nerd},markdown={headings=O.headings.glow,list_items={marker_minus={add_padding=false};marker_plus={add_padding=false},marker_star={add_padding=false};marker_dot={add_padding=false}};horizontal_rules=O.horizontal_rules.thin;code_blocks={pad_amount=1}},typst={enable=false}})end};{"\122\107-\110\118\105\109";ft="\109\097\114\107\100\111\119\110",after=function()(require("\122\107")).setup({picker="\115\101\108\101\099\116";lsp={config={cmd={"\122\107","\108\115\112"},name="\122\107\095\108\115\112"};auto_attach={enabled=true;filetypes={"\109\097\114\107\100\111\119\110"}}}})end},{"\105\109\103-\099\108\105\112\046\110\118\105\109",after=function()(require("\105\109\103-\099\108\105\112")).setup({filetypes={markdown={template=function()local O=vim.fs.find({"\046\111\098\115\105\100\105\097\110"},{upward=true})if vim.tbl_isempty(O)then return"\033\091\036\067\085\082\083\079\082\093\040\036\070\073\076\069\095\080\065\084\072\041"else return"\033\091\091\036\070\073\076\069\095\080\065\084\072\093\093"end end}}})end}}
return {
  {
    "markview.nvim",
    lazy = false, -- this plugin does its own lazy loading
    after = function()
      local p = require("markview.presets")

      require("markview").setup({
        -- allows us to use hybrid mode
        preview = {
          modes = { "n", "i", "no", "c" },
          hybrid_modes = { "i" },
          callbacks = {
            on_enable = function(_, win)
              vim.wo[win].conceallevel = 2
              vim.wo[win].concealcursor = "nc"
            end,
          },
        },

        markdown_inline = {
          checkboxes = p.checkboxes.nerd,
        },
        markdown = {
          headings = p.headings.glow,
          list_items = {
            -- indent_size = 0,
            marker_minus = { add_padding = false },
            marker_plus = { add_padding = false },
            marker_star = { add_padding = false },
            marker_dot = { add_padding = false },
          },
          horizontal_rules = p.horizontal_rules.thin,
          code_blocks = {
            pad_amount = 1,
          },
        },
        typst = {
          enable = false,
        },
      })
    end,
  },

  {
    "zk-nvim",
    ft = "markdown",
    after = function()
      require("zk").setup({
        -- can be "telescope", "fzf" or "select" (`vim.ui.select`)
        -- it's recommended to use "telescope" or "fzf"
        picker = "select",

        lsp = {
          -- `config` is passed to `vim.lsp.start_client(config)`
          config = {
            cmd = { "zk", "lsp" },
            name = "zk_lsp",
            -- on_attach = ...
            -- etc, see `:h vim.lsp.start_client()`
          },

          -- automatically attach buffers in a zk notebook that match the given filetypes
          auto_attach = {
            enabled = true,
            filetypes = { "markdown" },
          },
        },
      })
    end,
  },

  -- allow me to paste images really easy
  {
    "img-clip.nvim",
    after = function()
      require("img-clip").setup({
        filetypes = {
          markdown = {
            template = function()
              local root_dir = vim.fs.find({ ".obsidian" }, { upward = true })
              if vim.tbl_isempty(root_dir) then
                return "![$CURSOR]($FILE_PATH)"
              else
                return "![[$FILE_PATH]]"
              end
            end,
          },
        },
      })
    end,
  },
}
