Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion lua/typr/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ M.open = function()
border = "none",
})

vim.wo[dim_win].winblend = 20
if state.config.transparent_background then
vim.wo[dim_win].winblend = 100
else
vim.wo[dim_win].winblend = 20
end


utils.gen_default_lines()

Expand Down
1 change: 1 addition & 0 deletions lua/typr/state.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ local M = {
random = false,
phrases = nil, -- can be a table of strings
insert_on_start = false,
transparent_background = false,
stats_filepath = vim.fn.stdpath "data" .. "/typrstats",
mappings = nil,
-- or function(buf) end
Expand Down
6 changes: 5 additions & 1 deletion lua/typr/stats/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ M.open = function()
border = "none",
})

vim.wo[dim_win].winblend = 20
if state.config.transparent_background then
vim.wo[dim_win].winblend = 100
else
vim.wo[dim_win].winblend = 20
end

require("typr.stats.utils").init_volt()
state.h = voltstate[state.statsbuf].h
Expand Down