AckslD/nvim-FeMaco.lua

github github
markdown-/-latex
star 95
stars
alert-circle 0
open issues
users 3
subscribers
git-branch 0
forks
CREATED

2022-08-03

UPDATED

12 days ago


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.

https://user-images.githubusercontent.com/23341710/182567238-e1f7bbcc-1f0c-43de-b17d-9d5576aba873.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!