plugin upgrades and fuckery.

This commit is contained in:
2025-09-24 16:22:21 +02:00
parent 866b6ff34c
commit a28447db2f
11 changed files with 135 additions and 133 deletions

View File

@@ -1,9 +1,11 @@
return {
"mrcjkb/haskell-tools.nvim",
ft = { "haskell", "lhaskell", "cabal" },
dependencies = { "L3MON4D3/LuaSnip", "nvim-treesitter/nvim-treesitter" },
opts = {
hls = {
cmd = { "haskell-language-server-wrapper", "--lsp" },
settings = {
haskell = {
formattingProvider = "fourmolu",
@@ -21,5 +23,18 @@ return {
client.server_capabilities.documentFormattingProvider = false
end
end,
-- 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,
},
}