Skip to content

Commit

Permalink
feat(illuminate): enabled by default and optional lsp option
Browse files Browse the repository at this point in the history
close #571
  • Loading branch information
rewhile committed Aug 25, 2023
1 parent da8f487 commit 5b44baa
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1273,7 +1273,10 @@ gitgutter = false
<td>

```lua
illuminate = false
illuminate = {
enabled = true,
lsp = false
}
```

</td>
Expand Down
5 changes: 4 additions & 1 deletion doc/catppuccin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,10 @@ vim-gitgutter>lua
<

vim-illuminate>lua
illuminate = false
illuminate = {
enabled = true,
lsp = false
}
<

vim-sandwich>lua
Expand Down
5 changes: 4 additions & 1 deletion lua/catppuccin/groups/integrations/illuminate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ function M.get()
return {
IlluminatedWordText = { bg = U.darken(C.surface1, 0.7, C.base) },
IlluminatedWordRead = { bg = U.darken(C.surface1, 0.7, C.base) },
IlluminatedWordWrite = { bg = U.darken(C.surface1, 0.7, C.base) },
IlluminatedWordWrite = {
bg = U.darken(C.surface1, 0.7, C.base),
style = O.integrations.illuminate.lsp and { "standout" } or {},
},
}
end

Expand Down
4 changes: 4 additions & 0 deletions lua/catppuccin/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ local M = {
dim_context = false,
alt_background = false,
},
illuminate = {
enabled = true,
lsp = false,
},
indent_blankline = {
enabled = true,
colored_indent_levels = false,
Expand Down

0 comments on commit 5b44baa

Please # to comment.