Skip to content

Commit

Permalink
Fix: Show error when neovim < 0.10
Browse files Browse the repository at this point in the history
Current implementation always returns false, so people who use older version of nvim only see random errors instead of a proper explanation. This patch makes it work correctly.
  • Loading branch information
godrja authored and Shatur committed Jul 15, 2024
1 parent dd0f5eb commit 35c154a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/session_manager.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if not vim.fn.has('nvim-0.10.0') then
if vim.fn.has('nvim-0.10.0') == 0 then
require('session_manager.utils').notify('Neovim 0.10+ is required for session manager plugin', vim.log.levels.ERROR)
return
end
Expand Down

0 comments on commit 35c154a

Please sign in to comment.