From d3ebf2253ddf0da91437ded2ffb5b8a2bfc6c4ba Mon Sep 17 00:00:00 2001 From: Null Chilly <56817415+nullchilly@users.noreply.github.com> Date: Thu, 1 Jun 2023 18:12:12 +0700 Subject: [PATCH] feat: notify neovim version requirement (#15) * feat: notify neovim version requirement * refactor: move requirement check to setup --- lua/dropbar.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/dropbar.lua b/lua/dropbar.lua index a1ffb445..039e2527 100644 --- a/lua/dropbar.lua +++ b/lua/dropbar.lua @@ -46,6 +46,10 @@ end ---Setup dropbar ---@param opts dropbar_configs_t? local function setup(opts) + if 1 ~= vim.fn.has('nvim-0.10.0') then + vim.api.nvim_err_writeln('dropbar.nvim requires at least nvim-0.10.0') + return + end configs.set(opts) hlgroups.init() local groupid = vim.api.nvim_create_augroup('DropBar', {})