From fb1d9aeede1b7fe76c4ac499b904b09a07f7917c Mon Sep 17 00:00:00 2001 From: Tran Vo Son Tung Date: Mon, 13 Nov 2023 22:28:37 +0700 Subject: [PATCH] docs: update README --- README.md | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index a656131..43abb08 100644 --- a/README.md +++ b/README.md @@ -118,22 +118,24 @@ vim.opt.laststatus = 3 We provide you some default component: -| **Component** | **Description** | -| --------------------- | ------------------------------------------------------ | -| `datetime` | Show datetime | -| `mode` | Show current mode | -| `filename` | Show current filename | -| `git-branch` | Show git branch | -| `git-diff` | Show git diff | -| `diagnostics` | Show diagnostics | -| `lsps-formatters` | Show lsps, formatters(support for null-ls and conform) | -| `copilot` | Show copilot status | -| `copilot-loading` | Show copilot loading | -| `indent` | Show indent | -| `encoding` | Show encoding | -| `pos-cursor` | Show position of cursor | -| `pos-cursor-progress` | Show position of cursor with progress | -| `os-uname` | Show os name | +| **Component** | **Description** | +| --------------------- | ------------------------------------------------------------ | +| `datetime` | Show datetime | +| `mode` | Show current mode | +| `filename` | Show current filename | +| `git-branch` | Show git branch | +| `git-diff` | Show git diff | +| `diagnostics` | Show diagnostics | +| `lsps-formatters` | Show lsps, formatters(support for null-ls and conform) | +| `copilot` | Show copilot status | +| `copilot-loading` | Show copilot loading | +| `indent` | Show indent | +| `encoding` | Show encoding | +| `pos-cursor` | Show position of cursor | +| `pos-cursor-progress` | Show position of cursor with progress | +| `os-uname` | Show os name | +| `filesize` | Show filesize | +| `battery` | Show battery (support for linux only because i'm linux user) | To use default component use should add name of component to components options or you can add a table with the first value is the name of component and second @@ -221,7 +223,6 @@ Example: If you do this, the statusline will become ![empty-component](./docs/readme/empty-component.png) - #### Create new component ```lua