-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhigharc.lua
More file actions
93 lines (91 loc) · 1.92 KB
/
Copy pathhigharc.lua
File metadata and controls
93 lines (91 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
--- Higharc CLI integration for Neovim
---
--- Author: @lararosekelley
--- Last Modified: August 3rd, 2026
local icons = require("config.icons").icons.whichkey
return {
{
"git@github.com:higharc/higharc.nvim",
event = "VeryLazy",
dependencies = {
"folke/snacks.nvim",
"hrsh7th/nvim-cmp",
},
config = function()
require("higharc").setup({
terminal = {
win = {
position = "bottom",
height = 0.4,
},
},
})
end,
},
-- Which-key group registration
{
"folke/which-key.nvim",
opts = {
spec = {
{ "<leader>H", group = "Higharc", icon = { icon = icons.higharc, color = "yellow" } },
},
},
},
-- Keymaps via snacks (higharc uses snacks terminal/picker)
{
"folke/snacks.nvim",
keys = {
-- Command picker
{
"<leader>Hh",
function()
require("higharc.picker").pick()
end,
desc = "All Commands",
},
{
"<leader>Hr",
function()
require("higharc.picker").rebuild_cache()
end,
desc = "Rebuild Command Cache",
},
-- Test commands
{
"<leader>Ht",
function()
require("higharc.test").run_current()
end,
desc = "Test Current File",
},
{
"<leader>Hw",
function()
require("higharc.test").watch_current()
end,
desc = "Test Watch Current File",
},
{
"<leader>HT",
function()
require("higharc.test").pick()
end,
desc = "Pick Test Command",
},
{
"<leader>Ha",
function()
require("higharc.test").run_all()
end,
desc = "Test All",
},
{
"<leader>Hd",
function()
require("higharc.picker").debug_cache()
end,
desc = "Debug Cache",
},
},
},
}