From f05f286ff5c6667234027f75f7a4dca7a581c09b Mon Sep 17 00:00:00 2001 From: Pocco81 Date: Sat, 4 Sep 2021 16:07:06 -0500 Subject: [PATCH] feat #29: updated config on doc --- README.md | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index c8fa2d2..bd10b0e 100644 --- a/README.md +++ b/README.md @@ -177,11 +177,17 @@ integrations = { treesitter = true, native_lsp = { enabled = true, - styles = { + virtual_text = { errors = "italic", hints = "italic", warnings = "italic", - information = "italic" + information = "italic", + }, + underlines = { + errors = "underline", + hints = "underline", + warnings = "underline", + information = "underline", } }, lsp_trouble = false, @@ -234,11 +240,17 @@ catppuccino.setup( treesitter = true, native_lsp = { enabled = true, - styles = { + virtual_text = { errors = "italic", hints = "italic", warnings = "italic", - information = "italic" + information = "italic", + }, + underlines = { + errors = "underline", + hints = "underline", + warnings = "underline", + information = "underline", } }, lsp_trouble = false, @@ -295,11 +307,17 @@ catppuccino.setup( treesitter = true, native_lsp = { enabled = true, - styles = { + virtual_text = { errors = "italic", hints = "italic", warnings = "italic", - information = "italic" + information = "italic", + }, + underlines = { + errors = "underline", + hints = "underline", + warnings = "underline", + information = "underline", } }, lsp_trouble = false, @@ -417,7 +435,7 @@ If you'd like to know which highlight groups are being affected by Catppuccino, ### Special Integrations -- **Native Nvim LSP:** setting `enabled` to `true` enables this integration. In the inner table (`styles`) you can set that the style for virtual diagnostics. +- **Native Nvim LSP:** setting `enabled` to `true` enables this integration. 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)). - **Lualine:** use this to set it up (Note: `catppuccino` is the only valid theme name. It will pick the one set in your config): ```lua