feat: stylish-haskell
This commit is contained in:
parent
1f8aadd8e6
commit
07c93c7410
5
config/plugins/editor/easy-align.nix
Normal file
5
config/plugins/editor/easy-align.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
|
@ -14,21 +14,13 @@
|
||||||
formattersByFt = {
|
formattersByFt = {
|
||||||
c = ["clang-format"];
|
c = ["clang-format"];
|
||||||
nix = ["alejandra"];
|
nix = ["alejandra"];
|
||||||
|
haskell = ["stylish-haskell"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Install our formatters.
|
# Install our formatters.
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
alejandra
|
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,
|
|
||||||
})";
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue