Commit 4273e03 1 parent ce94d8b commit 4273e03 Copy full SHA for 4273e03
File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2022,17 +2022,18 @@ markview.commands = {
2022
2022
end
2023
2023
2024
2024
markview .splitView :close ();
2025
+ markview .state .buf_states [buffer ] = true ;
2026
+
2027
+ local mode = vim .api .nvim_get_mode ().mode ;
2025
2028
2026
- if markview .state .enable == false then
2029
+ if markview .state .enable == false or not vim . list_contains ( markview . configuration . modes , mode ) then
2027
2030
return ;
2028
2031
end
2029
2032
2030
2033
local windows = utils .find_attached_wins (buffer );
2031
2034
2032
2035
local parsed_content = markview .parser .init (buffer );
2033
2036
2034
- markview .state .buf_states [buffer ] = true ;
2035
-
2036
2037
for _ , window in ipairs (windows ) do
2037
2038
pcall (markview .configuration .callbacks .on_enable , buf , window );
2038
2039
end
You can’t perform that action at this time.
0 commit comments