plugin upgrades and fuckery.
This commit is contained in:
@@ -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,
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user