Note : This module is heavily based on nvim-FeMaco works which provides the exact functionality for markdown and org files
This module allows you to have code block editing capabilities through a popup in norg files
For example using packer
:
use {
'viperx7/nvim-FeMaco.lua',
config = 'require("femaco").setup()',
}
Call :FeMaco
or require('femaco.edit').edit_code_block()
with your cursor on a code-block. Edit the content, then save and/or close the popup to update the markdown buffer.
Special thanks to :
- AckslD for providing the original module and most of the code
- vhyrro for helping me with code Thanks to everyone working on neovim core, lua-api, treesitter etc which have made plugins like these a joy to create!
Catalyze your Fenced Markdown Code-block editing!
(based on this)
A small plugin allowing to edit markdown code-blocks with correct filetype in a floating window. This allows you to use all of your config for your favorite language. The buffer will be also linked to a temporary file in order to allow LSPs to work properly.
Powered by treesitter, lua and coffee.
femaco.mp4
For example using
packer
:use { 'AckslD/nvim-FeMaco.lua', config = 'require("femaco").setup()', }Requires
nvim-treesitter
with markdown support. Language injection not needed.Pass a dictionary into
require("femaco").setup()
with callback functions. Seeconfig
for available options.Call
:FeMaco
orrequire('femaco.edit').edit_code_block()
with your cursor on a code-block. Edit the content, then save and/or close the popup to update the markdown buffer.Thanks to everyone working on neovim core, lua-api, treesitter etc which have made plugins like these a joy to create!