summaryrefslogtreecommitdiffstats
path: root/lua/conform/init.lua
diff options
context:
space:
mode:
authorSteven Arcangeli <stevearc@stevearc.com>2024-07-15 09:32:56 -0700
committerSteven Arcangeli <stevearc@stevearc.com>2024-07-19 08:41:31 -0700
commit54ea60d1591486e7e56183addf1f45b03244386d (patch)
tree76a0820ccbae7c112ca4dab39882f135b4b0c64a /lua/conform/init.lua
parent17a3fc6baa36c192994ea2bb7356cf58b1c72605 (diff)
cleanup!: drop support for nvim 0.8
Diffstat (limited to 'lua/conform/init.lua')
-rw-r--r--lua/conform/init.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/conform/init.lua b/lua/conform/init.lua
index 5d515c4..c174dea 100644
--- a/lua/conform/init.lua
+++ b/lua/conform/init.lua
@@ -52,6 +52,10 @@ end
---@param opts? conform.setupOpts
M.setup = function(opts)
+ if vim.fn.has("nvim-0.9") == 0 then
+ notify("conform.nvim requires Neovim 0.9+", vim.log.levels.ERROR)
+ return
+ end
opts = opts or {}
M.formatters = vim.tbl_extend("force", M.formatters, opts.formatters or {})