mirror of
https://github.com/pnx/lualine-lsp-status
synced 2026-06-18 14:40:03 +02:00
Create README.md
This commit is contained in:
commit
00d1f59508
1 changed files with 97 additions and 0 deletions
97
README.md
Normal file
97
README.md
Normal file
|
|
@ -0,0 +1,97 @@
|
|||
# lualine-lsp-status
|
||||
|
||||
Plugin for showing connected lsp servers in [lualine](https://github.com/nvim-lualine/lualine.nvim).
|
||||
|
||||
## Screenshots
|
||||
|
||||

|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
## Install
|
||||
|
||||
|
||||
### [lazy.nvim](https://github.com/folke/lazy.nvim)
|
||||
```lua
|
||||
{ 'pnx/lualine-lsp-status' }
|
||||
```
|
||||
|
||||
### [vim-plug](https://github.com/junegunn/vim-plug)
|
||||
```vim
|
||||
Plug 'pnx/lualine-lsp-status'
|
||||
```
|
||||
|
||||
### [packer.nvim](https://github.com/wbthomason/packer.nvim)
|
||||
```lua
|
||||
use 'pnx/lualine-lsp-status'
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
Just add `lsp-status` as a component.
|
||||
|
||||
```lua
|
||||
require'lualine'.setup{
|
||||
...
|
||||
sections = {
|
||||
lualine_c = {
|
||||
...,
|
||||
'lsp-status'
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
This is the default configuration, feel free to change it to your liking.
|
||||
|
||||
```lua
|
||||
{
|
||||
|
||||
-- true if the number of lsp clients connected should be shown.
|
||||
show_count = true,
|
||||
|
||||
-- true if icon should also be color coded.
|
||||
colored = true,
|
||||
|
||||
-- Colors used.
|
||||
colors = {
|
||||
-- Color used if there are one or more clients connected
|
||||
active = {
|
||||
fg = utils.extract_color_from_hllist(
|
||||
'fg',
|
||||
{ 'DiagnosticOk', 'DiagnosticSignOk' },
|
||||
'#89dceb'
|
||||
)
|
||||
},
|
||||
-- Color used if there is zero clients connected
|
||||
inactive = {
|
||||
fg = utils.extract_color_from_hllist(
|
||||
'fg',
|
||||
{ 'DiagnosticError', 'DiagnosticSignError', 'Error' },
|
||||
'#f38ba8'
|
||||
)
|
||||
},
|
||||
-- Color used for the count.
|
||||
count = {
|
||||
fg = utils.extract_color_from_hllist(
|
||||
'fg',
|
||||
{ 'StatusLineNormal' },
|
||||
'#ffffff'
|
||||
)
|
||||
},
|
||||
},
|
||||
|
||||
-- Icon used.
|
||||
icons = {
|
||||
-- Icon used when there is one or more clients connected
|
||||
active = "",
|
||||
|
||||
-- Icon used when there is zero clients connected.
|
||||
inactive = ""
|
||||
}
|
||||
}
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue