From 79c9e4213a2bd69f82df777ba18ed6142d9d58c2 Mon Sep 17 00:00:00 2001 From: Soispha Date: Fri, 25 Aug 2023 23:05:19 +0200 Subject: Feat(hm/conf/neovim/plugins/femaco): Init --- .../neovim/nixvim/plugins/femaco/default.nix | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 home-manager/soispha/config/neovim/nixvim/plugins/femaco/default.nix (limited to 'home-manager/soispha/config/neovim/nixvim/plugins/femaco/default.nix') diff --git a/home-manager/soispha/config/neovim/nixvim/plugins/femaco/default.nix b/home-manager/soispha/config/neovim/nixvim/plugins/femaco/default.nix new file mode 100644 index 00000000..7e641da4 --- /dev/null +++ b/home-manager/soispha/config/neovim/nixvim/plugins/femaco/default.nix @@ -0,0 +1,24 @@ +{ + pkgs, + lib, + ... +}: { + programs.nixvim = { + # TODO package femaco though a module + extraConfigLuaPost = '' + ${lib.strings.fileContents ./lua/femaco.lua} + ''; + extraPlugins = [ + pkgs.vimPlugins.nvim-FeMaco-lua + ]; + maps = { + normal = { + "cc" = { + action = "require('femaco.edit').edit_code_block()"; + lua = true; + desc = "edit a [c]ode blo[c]k with femaco"; + }; + }; + }; + }; +} -- cgit 1.4.1