File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments