Skip to content

Commit

Permalink
docs: update type annotations & default config opts in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bekaboo committed Jan 12, 2024
1 parent 0b27192 commit fb52c97
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,7 @@ a transparent background color for a specific character.
require('deadcolumn').setup({
blending = {
colorcode = '#1F2430',
hlgroup = {
'NonText',
'background',
},
hlgroup = { 'NonText', 'bg' },
},
})
```
Expand Down
5 changes: 1 addition & 4 deletions doc/deadcolumn.nvim.txt
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,7 @@ Workarounds:
require('deadcolumn').setup({
blending = {
colorcode = '#1F2430',
hlgroup = {
'NonText',
'background',
},
hlgroup = { 'NonText', 'bg' },
},
})
<
Expand Down
2 changes: 1 addition & 1 deletion lua/deadcolumn.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ local C_NORMAL, C_CC, C_ERROR

---Get background color in hex
---@param hlgroup_name string
---@param field string 'foreground' or 'background'
---@param field 'fg'|'bg'
---@param fallback string|nil fallback color in hex, default to '#000000' if &bg is 'dark' and '#FFFFFF' if &bg is 'light'
---@return string hex color
local function get_hl_hex(hlgroup_name, field, fallback)
Expand Down

0 comments on commit fb52c97

Please sign in to comment.