A small tool to view real-world ActivityPub objects as JSON! Enter a URL
or username from Mastodon or a similar service below, and we'll send a
request with
the right
Accept
header
to the server to view the underlying object.
{
"@context": [
"https://join-lemmy.org/context.json",
"https://www.w3.org/ns/activitystreams"
],
"type": "Page",
"id": "https://lemmy.world/post/923376",
"attributedTo": "https://lemmy.world/u/Chocrates",
"to": [
"https://sopuli.xyz/c/neovim",
"https://www.w3.org/ns/activitystreams#Public"
],
"name": "Mason Markdown Formatting",
"cc": [],
"content": "<p>I am rewriting my ancient vim config into Lua with nvim. I am using Mason to grab lsp language servers and for the most part it works great!</p>\n<p>I have this in my remaps so I can <code><leader>f</code> to format the current file (still need to figure out formatting on save too, but I can’t for the life of me get Markdown formatting working.</p>\n<pre style=\"background-color:#ffffff;\">\n<span style=\"color:#323232;\">vim.keymap.set("n", "<leader>f", function()\n</span><span style=\"color:#323232;\">\tvim.lsp.buf.format()\n</span><span style=\"color:#323232;\">end)\n</span></pre>\n<p>I have markdownlint, marksman, prettier, and prettierd all installed wth Mason (though I haven’t written any keymaps or configs for them).\nAny idea how I can format my Markdown? I write in it all day every day so it’s gonna help a ton if I can get it working. Secondly any ideas how I can do the same mapping for the formatting on save? Still pretty new to Lua.</p>\n",
"mediaType": "text/html",
"source": {
"content": "I am rewriting my ancient vim config into Lua with nvim. I am using Mason to grab lsp language servers and for the most part it works great! \n\nI have this in my remaps so I can `<leader>f` to format the current file (still need to figure out formatting on save too, but I can't for the life of me get Markdown formatting working. \n\n```\nvim.keymap.set(\"n\", \"<leader>f\", function()\n\tvim.lsp.buf.format()\nend)\n```\n\nI have markdownlint, marksman, prettier, and prettierd all installed wth Mason (though I haven't written any keymaps or configs for them).\nAny idea how I can format my Markdown? I write in it all day every day so it's gonna help a ton if I can get it working. Secondly any ideas how I can do the same mapping for the formatting on save? Still pretty new to Lua.\n",
"mediaType": "text/markdown"
},
"attachment": [],
"sensitive": false,
"published": "2023-07-01T21:27:16.781173Z",
"language": {
"identifier": "en",
"name": "English"
},
"audience": "https://sopuli.xyz/c/neovim",
"tag": [
{
"href": "https://lemmy.world/post/923376",
"name": "#neovim",
"type": "Hashtag"
}
]
}