From 639497ae6dc720859e90fd6e5df0ac25da145528 Mon Sep 17 00:00:00 2001 From: TJ DeVries Date: Sat, 5 Sep 2020 15:15:15 -0400 Subject: [PATCH] feat: version check --- lua/telescope/builtin.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lua/telescope/builtin.lua b/lua/telescope/builtin.lua index 112054d..11f0b49 100644 --- a/lua/telescope/builtin.lua +++ b/lua/telescope/builtin.lua @@ -11,6 +11,13 @@ This will use the default configuration options. Other configuration options still in flux at the moment --]] +if 1 ~= vim.fn.has('nvim-0.5') then + vim.api.nvim_err_writeln("This plugins requires neovim 0.5") + vim.api.nvim_err_writeln("Please update your neovim.") + return +end + + -- TODO: Give some bonus weight to files we've picked before -- TODO: Give some bonus weight to oldfiles