Skip to content

Commit

Permalink
fix: don't check mousemoveevent unless needed
Browse files Browse the repository at this point in the history
  • Loading branch information
willothy committed Jul 2, 2023
1 parent dc00262 commit a7efa64
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lua/cokeline/hover.lua
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,7 @@ end

function M.setup()
if
_G.cokeline.config.mappings.disable_mouse
or version.minor < 8
or not vim.o.mousemoveevent
_G.cokeline.config.mappings.disable_mouse == true or version.minor < 8
then
return
end
Expand Down

0 comments on commit a7efa64

Please sign in to comment.