nvim: Re-enable femaco plugin

Since it in fact works wonderfully now, we re-enable FeMaco, allowing to
edit codeblocks in markdown-like environments (but really anywhere) by
simply invoking `<localleader>ce` ('codeblock-edit').

The mapping is only active in markdown and quarto files for the time
being, though more can probably be added.
The command itself works anywhere (`:FeMaco`), so can be used in racket
or norg or whereever.
This commit is contained in:
Marty Oehme 2024-06-06 15:42:12 +02:00
parent 989081abfc
commit b37650ac03
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
2 changed files with 14 additions and 8 deletions

View file

@ -81,6 +81,18 @@ return {
{ "<leader>vn", ":MoltenInfo<cr>" },
},
},
-- Edit code blocks in md/quarto using whatever language is
{
"AckslD/nvim-FeMaco.lua",
cmd = {
"FeMaco",
},
ft = { "markdown", "quarto" },
opts = {},
dependencies = {
"nvim-treesitter/nvim-treesitter",
},
},
-- MARKDOWN ONLY
-- Evaluate markdown code blocks
@ -96,12 +108,4 @@ return {
},
lazy = false,
},
{
"AckslD/nvim-FeMaco.lua",
cmd = {
"FeMaco",
},
ft = { "markdown" },
config = true,
},
}