From e6cce87ef64314edd5da110f45df0c88e748c0f8 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 10 Feb 2025 00:01:25 +0100 Subject: [PATCH] plugins/hlchunk: init --- plugins/by-name/hlchunk/default.nix | 29 ++++++ .../plugins/by-name/hlchunk/default.nix | 94 +++++++++++++++++++ 2 files changed, 123 insertions(+) create mode 100644 plugins/by-name/hlchunk/default.nix create mode 100644 tests/test-sources/plugins/by-name/hlchunk/default.nix diff --git a/plugins/by-name/hlchunk/default.nix b/plugins/by-name/hlchunk/default.nix new file mode 100644 index 0000000000..92d1b3ec29 --- /dev/null +++ b/plugins/by-name/hlchunk/default.nix @@ -0,0 +1,29 @@ +{ lib, ... }: +lib.nixvim.plugins.mkNeovimPlugin { + name = "hlchunk"; + packPathName = "hlchunk.nvim"; + package = "hlchunk-nvim"; + + maintainers = [ lib.maintainers.GaetanLepage ]; + + settingsExample = { + priority = 15; + style = [ + { fg = "#806d9c"; } + { fg = "#c21f30"; } + ]; + use_treesitter = true; + chars = { + horizontal_line = "─"; + vertical_line = "│"; + left_top = "╭"; + left_bottom = "╰"; + right_arrow = ">"; + }; + textobject = ""; + max_file_size = 1024 * 1024; + error_sign = true; + duration = 200; + delay = 300; + }; +} diff --git a/tests/test-sources/plugins/by-name/hlchunk/default.nix b/tests/test-sources/plugins/by-name/hlchunk/default.nix new file mode 100644 index 0000000000..bb521dbead --- /dev/null +++ b/tests/test-sources/plugins/by-name/hlchunk/default.nix @@ -0,0 +1,94 @@ +{ + empty = { + plugins.hlchunk.enable = true; + }; + + defaults = { + plugins.hlchunk = { + enable = true; + + settings = { + style = [ ]; + notify = false; + priority = 0; + exclude_filetypes = { + "__rawKey['']" = true; + aerial = true; + alpha = true; + better_term = true; + checkhealth = true; + cmp_menu = true; + dashboard = true; + "dap-repl" = true; + DiffviewFileHistory = true; + DiffviewFiles = true; + DressingInput = true; + fugitiveblame = true; + glowpreview = true; + help = true; + lazy = true; + lspinfo = true; + lspsagafinder = true; + man = true; + mason = true; + Navbuddy = true; + NeogitPopup = true; + NeogitStatus = true; + "neo-tree" = true; + "neo-tree-popup" = true; + noice = true; + notify = true; + NvimTree = true; + oil = true; + Outline = true; + OverseerList = true; + packer = true; + plugin = true; + qf = true; + query = true; + registers = true; + saga_codeaction = true; + sagaoutline = true; + sagafinder = true; + sagarename = true; + spectre_panel = true; + startify = true; + startuptime = true; + starter = true; + TelescopePrompt = true; + toggleterm = true; + Trouble = true; + trouble = true; + zsh = true; + }; + }; + }; + }; + + example = { + plugins.hlchunk = { + enable = true; + + settings = { + priority = 15; + style = [ + { fg = "#806d9c"; } + { fg = "#c21f30"; } + ]; + use_treesitter = true; + chars = { + horizontal_line = "─"; + vertical_line = "│"; + left_top = "╭"; + left_bottom = "╰"; + right_arrow = ">"; + }; + textobject = ""; + max_file_size = 1024 * 1024; + error_sign = true; + duration = 200; + delay = 300; + }; + }; + }; +}