Skip to content

Commit c944ff8

Browse files
committed
refactor(statuscolumn): Fixed issues with signs filter function
1 parent 73ed464 commit c944ff8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lua/bars/statuscolumn.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,19 @@ statuscolumn.config = {
4545
local mode = vim.api.nvim_get_mode().mode;
4646
local name = namespaces[details.ns_id] or "";
4747

48-
if package.loaded["markview"] and vim.bo[buffer] == "markdown" then
48+
if package.loaded["markview"] and vim.bo[buffer].ft == "markdown" then
4949
--- On markdown files when on normal
5050
--- mode only show markview signs.
5151
if mode == "n" then
52-
return string.match(name, "^markview");
52+
return string.match(name, "^markview") ~= nil;
5353
else
5454
return true;
5555
end
5656
elseif package.loaded["helpview"] and vim.bo[buffer].ft == "help" then
5757
--- On help files when on normal
5858
--- mode only show helpview signs.
5959
if mode == "n" then
60-
return string.match(name, "^helpview");
60+
return string.match(name, "^helpview") ~= nil;
6161
else
6262
return true;
6363
end

0 commit comments

Comments
 (0)