From ab8ee834e9b7e9ef591ad71b16d4fc38237ae78b Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Wed, 6 Nov 2024 01:00:29 +0100 Subject: [PATCH] nvim: add diagflow plugin --- home/common/nvim/default.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/home/common/nvim/default.nix b/home/common/nvim/default.nix index f8e4cb1..9f1679a 100644 --- a/home/common/nvim/default.nix +++ b/home/common/nvim/default.nix @@ -46,6 +46,29 @@ rustaceanvim targets-vim + { + plugin = pkgs.vimUtils.buildVimPlugin { + name = "diagflow"; + src = pkgs.fetchFromGitHub { + owner = "dgagn"; + repo = "diagflow.nvim"; + rev = "fc09d55d2e60edc8ed8f9939ba97b7b7e6488c99"; + hash = "sha256-2WNuaIEXcAgUl2Kb/cCHEOrtehw9alaoM96qb4MLArw="; + }; + }; + type = "lua"; + config = '' + require('diagflow').setup { + scope = "line", + gap_size = 0, + max_width = 50, + max_height = 20, + show_borders = true, + toggle_event = { "InsertEnter", "InsertLeave" }, + } + ''; + } + { plugin = pkgs.vimUtils.buildVimPlugin { name = "dieter-nvim";