update: don't auto format haskell files
This commit is contained in:
parent
6173719455
commit
1f8aadd8e6
|
@ -21,4 +21,14 @@
|
|||
extraPackages = with pkgs; [
|
||||
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,
|
||||
})";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue