Skip to content

Commit 35c154a

Browse files
godrjaShatur
authored andcommitted
Fix: Show error when neovim < 0.10
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.
1 parent dd0f5eb commit 35c154a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/session_manager.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if not vim.fn.has('nvim-0.10.0') then
1+
if vim.fn.has('nvim-0.10.0') == 0 then
22
require('session_manager.utils').notify('Neovim 0.10+ is required for session manager plugin', vim.log.levels.ERROR)
33
return
44
end

0 commit comments

Comments
 (0)