Skip to content

Commit 0696573

Browse files
committed
fix(leap-nvim): fix semantically incorrect version check
1 parent d3fb425 commit 0696573

File tree

1 file changed

+1
-1
lines changed
  • lua/astrocommunity/motion/leap-nvim

1 file changed

+1
-1
lines changed

lua/astrocommunity/motion/leap-nvim/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ return {
55
{
66
"AstroNvim/astrocore",
77
opts = {
8-
autocmds = vim.version().minor < 10
8+
autocmds = vim.fn.has "nvim-0.10" == 0
99
and {
1010
leap_cursor = { -- https://github.com/ggandor/leap.nvim/issues/70#issuecomment-1521177534
1111
{

0 commit comments

Comments
 (0)