Skip to content

Commit

Permalink
feat: notify if using an unsupported Nvim version
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Jan 27, 2025
1 parent c72aadd commit 182e4b7
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ftplugin/cabal.lua
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
if vim.fn.has('nvim-0.10') ~= 1 then
vim.notify_once('haskell-tools.nvim requires Neovim 0.10 or above', vim.log.levels.ERROR)
return
end
require('haskell-tools.internal').ftplugin()
4 changes: 4 additions & 0 deletions ftplugin/cabalproject.lua
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
if vim.fn.has('nvim-0.10') ~= 1 then
vim.notify_once('haskell-tools.nvim requires Neovim 0.10 or above', vim.log.levels.ERROR)
return
end
require('haskell-tools.internal').ftplugin()
4 changes: 4 additions & 0 deletions ftplugin/haskell.lua
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
if vim.fn.has('nvim-0.10') ~= 1 then
vim.notify_once('haskell-tools.nvim requires Neovim 0.10 or above', vim.log.levels.ERROR)
return
end
require('haskell-tools.internal').ftplugin()
4 changes: 4 additions & 0 deletions ftplugin/lhaskell.lua
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
if vim.fn.has('nvim-0.10') ~= 1 then
vim.notify_once('haskell-tools.nvim requires Neovim 0.10 or above', vim.log.levels.ERROR)
return
end
require('haskell-tools.internal').ftplugin()

0 comments on commit 182e4b7

Please sign in to comment.