Skip to content

Commit

Permalink
feat: notify neovim version requirement (#15)
Browse files Browse the repository at this point in the history
* feat: notify neovim version requirement

* refactor: move requirement check to setup
  • Loading branch information
nullchilly authored Jun 1, 2023
1 parent 96b3fad commit d3ebf22
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/dropbar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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', {})
Expand Down

0 comments on commit d3ebf22

Please sign in to comment.