Skip to content

Commit cad21d3

Browse files
committed
docs: update readme for nvchad integration
1 parent 7d499d3 commit cad21d3

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,15 +187,14 @@ safe to drop into existing layouts.
187187
<summary><b>NvChad (built-in statusline)</b></summary>
188188

189189
NvChad exposes its UI configuration through the return table of
190-
`lua/chadrc.lua`. The snippet below **extends** the default status-line instead
191-
of replacing it.
190+
`lua/chadrc.lua`. The snippet below shows a minimal way to **add one custom
191+
module** (named `remote`) without touching the rest of the default layout.
192192

193193
```lua
194-
-- ~/.config/nvim/lua/chadrc.lua (or wherever your NvChad chadrc lives)
194+
-- ~/.config/nvim/lua/chadrc.lua
195195

196196
local M = {}
197197

198-
-- 1️⃣ Fetch the default lay-out that ships with NvChad
199198
-- 1️⃣ Create a callable module for NvChad’s statusline
200199
local remote_module = require("remote-sshfs.statusline").nvchad_module {
201200
highlight = "St_gitIcons", -- highlight group (optional)

0 commit comments

Comments
 (0)