local api = vim.api local ts = vim.treesitter vim.b.slime_cell_delimiter = '```' vim.b['quarto_is_r_mode'] = nil vim.b['reticulate_running'] = false vim.bo.commentstring = '' -- wrap text, but by word no character -- indent the wrappped line vim.wo.wrap = true vim.wo.linebreak = true vim.wo.breakindent = true vim.wo.showbreak = '|' -- don't run vim ftplugin on top vim.api.nvim_buf_set_var(0, 'did_ftplugin', true) -- markdown vs. quarto hacks local ns = vim.api.nvim_create_namespace 'QuartoHighlight' vim.api.nvim_set_hl(ns, '@markup.strikethrough', { strikethrough = false }) vim.api.nvim_set_hl(ns, '@markup.doublestrikethrough', { strikethrough = true }) vim.api.nvim_win_set_hl_ns(0, ns) -- vim.api.nvim_set_hl(0, '@markup.codecell', { bg = '#000055' }) vim.api.nvim_set_hl(0, '@markup.codecell', { link = 'CursorLine', })