From 3925f6ee04f09d7d09b7aff018812670a0e89492 Mon Sep 17 00:00:00 2001 From: Soispha Date: Tue, 29 Aug 2023 21:33:43 +0200 Subject: Refactor(hm/conf/nvim/plugins): Rename to `plgs` to safe commit msg space --- .../conf/nvim/plugins/debugprint/default.nix | 77 ---------------------- .../nvim/plugins/debugprint/lua/debugprint.lua | 4 -- 2 files changed, 81 deletions(-) delete mode 100644 hm/soispha/conf/nvim/plugins/debugprint/default.nix delete mode 100644 hm/soispha/conf/nvim/plugins/debugprint/lua/debugprint.lua (limited to 'hm/soispha/conf/nvim/plugins/debugprint') diff --git a/hm/soispha/conf/nvim/plugins/debugprint/default.nix b/hm/soispha/conf/nvim/plugins/debugprint/default.nix deleted file mode 100644 index 522965ac..00000000 --- a/hm/soispha/conf/nvim/plugins/debugprint/default.nix +++ /dev/null @@ -1,77 +0,0 @@ -{ - pkgs, - lib, - ... -}: { - programs.nixvim = { - # TODO: package debugprint though a module - extraConfigLuaPost = '' - ${lib.strings.fileContents ./lua/debugprint.lua} - ''; - extraPlugins = [ - pkgs.vimExtraPlugins.debugprint-nvim - ]; - - maps = let - visualNormal = { - "g?v" = { - action = '' - function() - return require('debugprint').debugprint({variable = true;}); - end - ''; - lua = true; - expr = true; - desc = '' - 'variable' debug line below the current line - ''; - }; - "g?V" = { - action = '' - function() - return require('debugprint').debugprint({above = true; variable = true;}) ; - end - ''; - lua = true; - expr = true; - desc = '' - 'variable' debug line above the current line - ''; - }; - }; - in { - normal = - { - "g?p" = { - action = '' - function() - return require('debugprint').debugprint(); - end - ''; - lua = true; - expr = true; - desc = '' - 'plain' debug line below the current line - ''; - }; - "g?P" = { - action = '' - function() - return require('debugprint').debugprint({above = true;}); - end - ''; - lua = true; - expr = true; - desc = '' - 'plain' debug line above the current line - ''; - }; - } - // visualNormal; - visual = - { - } - // visualNormal; - }; - }; -} diff --git a/hm/soispha/conf/nvim/plugins/debugprint/lua/debugprint.lua b/hm/soispha/conf/nvim/plugins/debugprint/lua/debugprint.lua deleted file mode 100644 index 2ea38df4..00000000 --- a/hm/soispha/conf/nvim/plugins/debugprint/lua/debugprint.lua +++ /dev/null @@ -1,4 +0,0 @@ -require("debugprint").setup({ - create_keymaps = false; -}) - -- cgit 1.4.1