Skip to content

Commit

Permalink
fix: Removed debug print for luminosity
Browse files Browse the repository at this point in the history
Closes #101

fix: Removed auto setting conceallevel & concealcursor

Closes #102
  • Loading branch information
OXY2DEV committed Aug 12, 2024
1 parent 03290ce commit 798fd99
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions lua/markview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,6 @@ markview.configuration = {
default = true
};
else
vim.print(luminosity)
return {
bg = markview.colors.mix(bg, bg, 1, math.max(1 - luminosity, 0.05) * -1),
default = true
Expand Down Expand Up @@ -1454,9 +1453,6 @@ markview.commands = {
enableAll = function ()
markview.state.enable = true;

vim.o.conceallevel = 2;
vim.o.concealcursor = "n";

for _, buf in ipairs(markview.attached_buffers) do
local parsed_content = markview.parser.init(buf);
local windows = utils.find_attached_wins(buffer);
Expand Down Expand Up @@ -1484,7 +1480,6 @@ markview.commands = {
end

markview.state.buf_states[buf] = false;

markview.renderer.clear(buf);
end

Expand Down
2 changes: 0 additions & 2 deletions lua/markview/renderer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1729,8 +1729,6 @@ renderer.render = function (buffer, parsed_content, config_table, conceal_start,
_G.__markview_render_ranges[buffer] = {};
end

-- vim.print(#parsed_content)

for _, content in ipairs(_G.__markview_views[buffer]) do
local type = content.type;
local fold_closed = vim.fn.foldclosed(content.row_start + 1);
Expand Down

0 comments on commit 798fd99

Please sign in to comment.