haskell-config for nvim & ge_proton install script

This commit is contained in:
Nicole Dresselhaus
2025-09-12 10:57:44 +02:00
parent 41e1067647
commit 014ec633b7
7 changed files with 108 additions and 3 deletions

View File

@ -0,0 +1,18 @@
return {
"mrcjkb/haskell-snippets.nvim",
ft = { "haskell", "lhaskell", "cabal" },
dependencies = { "L3MON4D3/LuaSnip" },
-- falls Lazy mal falsch cached: lade LuaSnip aktiv vorher
init = function()
if not package.loaded["luasnip"] then
local ok, lazy = pcall(require, "lazy")
if ok then
lazy.load({ plugins = { "LuaSnip" } })
end
end
end,
-- lade nur, wenn require("luasnip") wirklich klappt
cond = function()
return package.loaded["luasnip"] or pcall(require, "luasnip")
end,
}