Skip to content

Commit

Permalink
doc(native_lsp): new "Ok" diagnostic
Browse files Browse the repository at this point in the history
Add documentation and type information for the new "Ok" diagnostic.
  • Loading branch information
MithicSpirit committed May 20, 2024
1 parent 42f1a36 commit 93169af
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -439,12 +439,14 @@ native_lsp = {
hints = { "italic" },
warnings = { "italic" },
information = { "italic" },
ok = { "italic" },
},
underlines = {
errors = { "underline" },
hints = { "underline" },
warnings = { "underline" },
information = { "underline" },
ok = { "underline" },
},
inlay_hints = {
background = true,
Expand Down Expand Up @@ -1038,12 +1040,14 @@ native_lsp = {
hints = { "italic" },
warnings = { "italic" },
information = { "italic" },
ok = { "italic" },
},
underlines = {
errors = { "underline" },
hints = { "underline" },
warnings = { "underline" },
information = { "underline" },
ok = { "underline" },
},
inlay_hints = {
background = true,
Expand Down
4 changes: 4 additions & 0 deletions doc/catppuccin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -366,12 +366,14 @@ directly at the thing (e.g. an error)).
hints = { "italic" },
warnings = { "italic" },
information = { "italic" },
ok = { "italic" },
},
underlines = {
errors = { "underline" },
hints = { "underline" },
warnings = { "underline" },
information = { "underline" },
ok = { "underline" },
},
inlay_hints = {
background = true,
Expand Down Expand Up @@ -674,12 +676,14 @@ nvim-lspconfig>lua
hints = { "italic" },
warnings = { "italic" },
information = { "italic" },
ok = { "italic" },
},
underlines = {
errors = { "underline" },
hints = { "underline" },
warnings = { "underline" },
information = { "underline" },
ok = { "underline" },
},
inlay_hints = {
background = true,
Expand Down
10 changes: 6 additions & 4 deletions lua/catppuccin/types.lua
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,16 @@
---@field miscs CtpHighlightArgs[]?

---@class CtpNativeLspStyles
-- Change the style of LSP errors.
-- Change the style of LSP error diagnostics.
---@field errors CtpHighlightArgs[]?
-- Change the style of LSP hints.
-- Change the style of LSP hint diagnostics.
---@field hints CtpHighlightArgs[]?
-- Change the style of LSP warnings.
-- Change the style of LSP warning diagnostics.
---@field warnings CtpHighlightArgs[]?
-- Change the style of LSP information.
-- Change the style of LSP information diagnostics.
---@field information CtpHighlightArgs[]?
-- Change the style of LSP ok diagnostics.
---@field ok CtpHighlightArgs[]?

---@class CtpNativeLspInlayHints
-- Toggle the background of inlay hints.
Expand Down

0 comments on commit 93169af

Please sign in to comment.