update: don't auto format haskell files

This commit is contained in:
♥ Minnie ♥ 2024-08-14 19:25:09 +08:00
parent 6173719455
commit 1f8aadd8e6
Signed by: jasmine
GPG key ID: 8563E358D4E8040E

View file

@ -21,4 +21,14 @@
extraPackages = with pkgs; [ extraPackages = with pkgs; [
alejandra alejandra
]; ];
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,
})";
} }