From 877a45747332085ba469f27f5f643ffc4840bb45 Mon Sep 17 00:00:00 2001
From: ray-x <rayx.cn@gmail.com>
Date: Sat, 25 May 2024 20:27:15 +1000
Subject: [PATCH] fix for nvim-0.9.0 get-clients

---
 lua/navigator.lua | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/lua/navigator.lua b/lua/navigator.lua
index 10bed48..a1541e1 100644
--- a/lua/navigator.lua
+++ b/lua/navigator.lua
@@ -237,17 +237,11 @@ _NgConfigValues = {
 }
 
 M.deprecated = function(cfg)
-  if cfg.lsp ~= nil and cfg.lsp.neodev ~= false and cfg.lsp.neodev then
-    warn('neodev option deprecated, refer to README for more details')
-  end
-  if cfg.lsp and cfg.lsp.sumneko_lua then
-    warn('sumneko_lua option deprecated, refer to README for more details')
-  end
   if cfg.ts_fold ~= nil and type(cfg.ts_fold) == 'boolean' then
     warn('ts_fold option changed, refer to README for more details')
     cfg.ts_fold = { enable = cfg.ts_fold }
   end
-  local has_nvim_010 = vim.fn.has('nvim-0.10')
+  local has_nvim_010 = vim.fn.has('nvim-0.10') == 1
   if not has_nvim_010 then
     vim.lsp.get_clients = vim.lsp.get_active_clients
     vim.islist = vim.tbl_islist