From 2b8ff3ec0a67ba28963cf1ecc779f51b899f5610 Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Sat, 1 Mar 2025 09:39:43 +0100 Subject: [PATCH] feat(neovim): table mode plugin for markdown. --- modules/home-manager/neovim.nix | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/modules/home-manager/neovim.nix b/modules/home-manager/neovim.nix index 1819b1a..3aa71aa 100644 --- a/modules/home-manager/neovim.nix +++ b/modules/home-manager/neovim.nix @@ -3,7 +3,17 @@ pkgs, lib, ... -}: { +}: let + markdown-table-mode = pkgs.vimUtils.buildVimPlugin { + name = "markdown-table-mode"; + src = pkgs.fetchFromGitHub { + owner = "Kicamon"; + repo = "markdown-table-mode.nvim"; + rev = "fe207ea7cef615ccaf2c0f1257c58ffa0a50a9f5"; + hash = "sha256-JGc5L+7/eSBww1HaMl0AVcIwEJF/RFqoVRpR3DnP6+E="; + }; + }; +in { options = { crony.neovim.enable = lib.mkEnableOption "Enable neovim and apply a good config."; }; @@ -244,6 +254,12 @@ require('telescope').load_extension('fzf') ''; }; + markdown-table-mode-nvim = { + package = markdown-table-mode; + setup = '' + require('markdown-table-mode').setup() + ''; + }; }; }; };