feat: stylish-haskell

This commit is contained in:
♥ Minnie ♥ 2024-08-14 20:20:10 +08:00
parent 1f8aadd8e6
commit 07c93c7410
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
2 changed files with 7 additions and 10 deletions

View file

@ -0,0 +1,5 @@
{ ... }:
{
}

View file

@ -14,21 +14,13 @@
formattersByFt = {
c = ["clang-format"];
nix = ["alejandra"];
haskell = ["stylish-haskell"];
};
};
# Install our formatters.
extraPackages = with pkgs; [
alejandra
stylish-haskell
];
extraConfigLua = "require('conform').setup({
format_on_save = function(bufnr)
-- Disable autoformat on certain filetypes
local ignore_filetypes = { 'haskell', }
if vim.tbl_contains(ignore_filetypes, vim.bo[bufnr].filetype) then
return
end
end,
})";
}