Skip to content

Catalyze your Fenced Markdown Code-block editing!

Notifications You must be signed in to change notification settings

ViperX7/nvim-FeMaco.lua

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Neorg FeMaco


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

Installation

For example using packer:

use {
 'viperx7/nvim-FeMaco.lua',
 config = 'require("femaco").setup()',
}

Usage

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.

Credit

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!

FeMaco

Catalyze your Fenced Markdown Code-block editing!

FeMoco_cluster (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

Installation

For example using packer:

use {
 'AckslD/nvim-FeMaco.lua',
 config = 'require("femaco").setup()',
}

Requires nvim-treesitter with markdown support. Language injection not needed.

Configuration

Pass a dictionary into require("femaco").setup() with callback functions. See config for available options.

Usage

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.

Credit

Thanks to everyone working on neovim core, lua-api, treesitter etc which have made plugins like these a joy to create!

About

Catalyze your Fenced Markdown Code-block editing!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%