Skip to content

Commit 72e58f8

Browse files
committed
fix: padding when no servers
1 parent b254c45 commit 72e58f8

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,12 +1059,10 @@ sequenceDiagram
10591059
- [x] Support /slash_commands in avante
10601060
- [x] Support streamable-http transport
10611061
- [x] Support OAuth
1062-
- [ ] Add types
1062+
- [x] Add types
10631063
- [ ] Add tests
10641064
- [ ] Support #variables in avante
10651065
- [ ] Better Docs
1066-
- [ ] ~Composio Integration~
1067-
- [ ] ~Smithery Integration~
10681066
10691067
10701068
## 👏 Acknowledgements

lua/mcphub/config.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ local defaults = {
3333
relative = "editor",
3434
zindex = 50,
3535
},
36+
wo = { -- window-scoped options (vim.wo)
37+
winhl = "Normal:MCPHubNormal,FloatBorder:MCPHubBorder",
38+
},
3639
},
3740
extensions = {
3841
---@type MCPHubAvanteConfig

lua/mcphub/state.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ local log = require("mcphub.utils.log")
99
local State = {
1010
---@type "not_started" | "in_progress" | "completed" | "failed" MCPHub setup state
1111
setup_state = "not_started",
12-
config = {}, --[[@as MCPHub.Config]]
12+
---@type MCPHub.Config
13+
config = {},
1314
---@type table<string, MCPServerConfig>
1415
servers_config = {},
1516
---@type table<string, NativeMCPServerConfig>

lua/mcphub/ui/views/main.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ function MainView:render_servers_section(title, servers, config_source, current_
614614
table.insert(
615615
lines,
616616
Text.pad_line(
617-
NuiLine():append("No servers connected " .. "(Install from Marketplace)", Text.highlights.muted)
617+
NuiLine():append(" No servers connected " .. "(Install from Marketplace)", Text.highlights.muted)
618618
)
619619
)
620620
table.insert(lines, Text.empty_line())

0 commit comments

Comments
 (0)