diff --git a/lua/frecency/config.lua b/lua/frecency/config.lua index 8d9ad27..87199d7 100644 --- a/lua/frecency/config.lua +++ b/lua/frecency/config.lua @@ -173,7 +173,7 @@ end ---@return nil Config.setup = function(ext_config) local opts = vim.tbl_extend("force", Config.default_values, ext_config or {}) - if vim.version().minor >= 11 then + if vim.fn.has "nvim-0.11" == 1 then vim.validate("recency_values", opts.recency_values, "table") vim.validate("auto_validate", opts.auto_validate, "boolean") vim.validate("bootstrap", opts.bootstrap, "boolean") diff --git a/lua/telescope/_extensions/frecency.lua b/lua/telescope/_extensions/frecency.lua index 752d165..74f6257 100644 --- a/lua/telescope/_extensions/frecency.lua +++ b/lua/telescope/_extensions/frecency.lua @@ -8,7 +8,7 @@ return require("telescope").register_extension { }, setup = frecency.setup, health = function() - if vim.version().minor >= 10 then + if vim.fn.has "nvim-0.10" == 1 then vim.health.ok "Neovim version is 0.10 or higher." else vim.health.error "Neovim version must be 0.10 or higher."