@@ -184,7 +184,7 @@ The module returns an **empty string** when no host is mounted which makes it
184184safe to drop into existing layouts.
185185
186186<details >
187- <summary ><b >NvChad / Heirline (v2.* )</b ></summary >
187+ <summary ><b >NvChad (built-in statusline )</b ></summary >
188188
189189NvChad exposes its UI configuration through the return table of
190190` lua/chadrc.lua ` . The snippet below ** extends** the default status-line instead
@@ -196,19 +196,23 @@ of replacing it.
196196local M = {}
197197
198198-- 1️⃣ Fetch the default lay-out that ships with NvChad
199- local default = require " nvchad.statusline.default"
200-
201- -- 2️⃣ Create the remote-sshfs component (shows: <hostname> while connected)
202- local remote = require (" remote-sshfs.statusline" ).nvchad_component {
203- highlight = { fg = " green" }, -- (optional) colour override
199+ -- 1️⃣ Create a callable module for NvChad’s statusline
200+ local remote_module = require (" remote-sshfs.statusline" ).nvchad_module {
201+ highlight = " St_gitIcons" , -- highlight group (optional)
204202}
205203
206- -- 3️⃣ Inject it wherever you want. Here we append at the end.
207- table.insert (default , remote )
208-
209- -- 4️⃣ Expose the modified layout back to NvChad
204+ -- 2️⃣ Add it to `modules` *and* reference it in `order`
210205M .ui = {
211- statusline = default ,
206+ statusline = {
207+ -- theme / separator_style as you already have…
208+
209+ -- insert the module name wherever you like
210+ order = { " mode" , " f" , " git" , " %=" , " remote" , " %=" , " lsp" , " cwd" },
211+
212+ modules = {
213+ remote = remote_module ,
214+ },
215+ },
212216}
213217
214218return M
0 commit comments