4 Commits

Author SHA1 Message Date
eae4cbc30f chore(flake): bump version
All checks were successful
check-commits / Check commits (pull_request) Successful in 8s
build-flake / build (pull_request) Successful in 4m56s
2025-12-29 12:06:30 +02:00
6286e367c7 chore: add editorconfig 2025-12-29 12:06:17 +02:00
543ccb7573 feat(conform): do not disable formatters on timeout 2025-12-29 12:05:57 +02:00
4cdac1381b feat(conform): re-enable auto formatting, fix #47
All checks were successful
check-commits / Check commits (pull_request) Successful in 9s
build-flake / build (pull_request) Successful in 11m20s
2025-12-29 10:19:20 +02:00
2 changed files with 22 additions and 21 deletions

View File

@@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v5
- name: Setup sudo (required for the next step)
run: apt-get update && apt-get install -y sudo
- name: Setup nix

View File

@@ -124,33 +124,34 @@
return
end
if slow_format_filetypes[vim.bo[bufnr].filetype] then
return
end
-- if slow_format_filetypes[vim.bo[bufnr].filetype] then
-- return
-- end
local function on_format(err)
if err and err:match("timeout$") then
slow_format_filetypes[vim.bo[bufnr].filetype] = true
end
return
-- if err and err:match("timeout$") then
-- slow_format_filetypes[vim.bo[bufnr].filetype] = true
-- end
end
return { timeout_ms = 200, lsp_fallback = true }, on_format
end
'';
format_after_save = # Lua
''
function(bufnr)
if vim.g.disable_autoformat or vim.b[bufnr].disable_autoformat then
return
end
if not slow_format_filetypes[vim.bo[bufnr].filetype] then
return
end
return { lsp_fallback = true }
end
'';
# format_after_save = # Lua
# ''
# function(bufnr)
# if vim.g.disable_autoformat or vim.b[bufnr].disable_autoformat then
# return
# end
#
# if not slow_format_filetypes[vim.bo[bufnr].filetype] then
# return
# end
#
# return { lsp_fallback = true }
# end
# '';
log_level = "warn";
notify_on_error = true;
notify_no_formatters = false;