Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc891845

Browse files
authored
docs: addlsp_styles to configuration section (#937)
* doc: add `lsp_styles` to configuration section* docs: auto generate vimdoc* doc: remove `lsp_styles` section under integrations* docs: auto generate vimdoc
1 parent5af9374 commitc891845

File tree

3 files changed

+38
-68
lines changed

3 files changed

+38
-68
lines changed

‎README.md‎

Lines changed: 19 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,25 @@ require("catppuccin").setup({
123123
operators= {},
124124
-- miscs = {}, -- Uncomment to turn off hard-coded styles
125125
},
126+
lsp_styles= {-- Handles the style of specific lsp hl groups (see `:h lsp-highlight`).
127+
virtual_text= {
128+
errors= {"italic"},
129+
hints= {"italic"},
130+
warnings= {"italic"},
131+
information= {"italic"},
132+
ok= {"italic"},
133+
},
134+
underlines= {
135+
errors= {"underline"},
136+
hints= {"underline"},
137+
warnings= {"underline"},
138+
information= {"underline"},
139+
ok= {"underline"},
140+
},
141+
inlay_hints= {
142+
background=true,
143+
},
144+
},
126145
color_overrides= {},
127146
custom_highlights= {},
128147
default_integrations=true,
@@ -1127,44 +1146,6 @@ dap_ui = true
11271146
</tr>
11281147
<!-- nvim-dap-ui-->
11291148

1130-
<!-- nvim-lspconfig-->
1131-
</tr>
1132-
<tr>
1133-
<td> <ahref="https://github.com/neovim/nvim-lspconfig">nvim-lspconfig</a> </td>
1134-
<td>
1135-
1136-
```lua
1137-
lsp_styles= {
1138-
virtual_text= {
1139-
errors= {"italic"},
1140-
hints= {"italic"},
1141-
warnings= {"italic"},
1142-
information= {"italic"},
1143-
ok= {"italic"},
1144-
},
1145-
underlines= {
1146-
errors= {"underline"},
1147-
hints= {"underline"},
1148-
warnings= {"underline"},
1149-
information= {"underline"},
1150-
ok= {"underline"},
1151-
},
1152-
inlay_hints= {
1153-
background=true,
1154-
},
1155-
},
1156-
```
1157-
1158-
<details> <summary>Special</summary>
1159-
1160-
In the inners tables you can set the style for the diagnostics, both`virtual_text` (what you see on the side) and`underlines` (what points directly at the thing (e.g. an error)).
1161-
1162-
</details>
1163-
1164-
</td>
1165-
</tr>
1166-
<!-- nvim-lspconfig-->
1167-
11681149
<!-- navic-->
11691150
</tr>
11701151
<tr>

‎doc/catppuccin.txt‎

Lines changed: 19 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,25 @@ options and settings.
103103
operators = {},
104104
-- miscs = {}, -- Uncomment to turn off hard-coded styles
105105
},
106+
lsp_styles = { -- Handles the style of specific lsp hl groups (see `:h lsp-highlight`).
107+
virtual_text = {
108+
errors = { "italic" },
109+
hints = { "italic" },
110+
warnings = { "italic" },
111+
information = { "italic" },
112+
ok = { "italic" },
113+
},
114+
underlines = {
115+
errors = { "underline" },
116+
hints = { "underline" },
117+
warnings = { "underline" },
118+
information = { "underline" },
119+
ok = { "underline" },
120+
},
121+
inlay_hints = {
122+
background = true,
123+
},
124+
},
106125
color_overrides = {},
107126
custom_highlights = {},
108127
default_integrations = true,
@@ -715,34 +734,6 @@ nvim-dap-ui>lua
715734
dap_ui = true
716735
<
717736

718-
nvim-lspconfig>lua
719-
lsp_styles = {
720-
virtual_text = {
721-
errors = { "italic" },
722-
hints = { "italic" },
723-
warnings = { "italic" },
724-
information = { "italic" },
725-
ok = { "italic" },
726-
},
727-
underlines = {
728-
errors = { "underline" },
729-
hints = { "underline" },
730-
warnings = { "underline" },
731-
information = { "underline" },
732-
ok = { "underline" },
733-
},
734-
inlay_hints = {
735-
background = true,
736-
},
737-
},
738-
<
739-
740-
Special~
741-
742-
In the inners tables you can set the style for the diagnostics, both
743-
`virtual_text` (what you see on the side) and`underlines` (what points
744-
directly at the thing (e.g. an error)).
745-
746737
navic>lua
747738
navic = {
748739
enabled = false,

‎lua/catppuccin/types.lua‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@
9696
---@fieldmiscsCtpHighlightArgs[]?
9797

9898
---@classCtpLspStyles
99-
-- Whether to enable the Native LSP integration.
100-
---@fieldenabledboolean
10199
-- Styles to apply to virtual text.
102100
---@fieldvirtual_textCtpLspDiagnosticStyles?
103101
-- Styles to apply to underlines.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp