Compare commits
4 Commits
1.10.1
...
feat/updat
| Author | SHA1 | Date | |
|---|---|---|---|
| eae4cbc30f | |||
| 6286e367c7 | |||
| 543ccb7573 | |||
| 4cdac1381b |
@@ -9,7 +9,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v5
|
||||||
- name: Setup sudo (required for the next step)
|
- name: Setup sudo (required for the next step)
|
||||||
run: apt-get update && apt-get install -y sudo
|
run: apt-get update && apt-get install -y sudo
|
||||||
- name: Setup nix
|
- name: Setup nix
|
||||||
|
|||||||
@@ -124,33 +124,34 @@
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if slow_format_filetypes[vim.bo[bufnr].filetype] then
|
-- if slow_format_filetypes[vim.bo[bufnr].filetype] then
|
||||||
return
|
-- return
|
||||||
end
|
-- end
|
||||||
|
|
||||||
local function on_format(err)
|
local function on_format(err)
|
||||||
if err and err:match("timeout$") then
|
return
|
||||||
slow_format_filetypes[vim.bo[bufnr].filetype] = true
|
-- if err and err:match("timeout$") then
|
||||||
end
|
-- slow_format_filetypes[vim.bo[bufnr].filetype] = true
|
||||||
|
-- end
|
||||||
end
|
end
|
||||||
|
|
||||||
return { timeout_ms = 200, lsp_fallback = true }, on_format
|
return { timeout_ms = 200, lsp_fallback = true }, on_format
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
format_after_save = # Lua
|
# format_after_save = # Lua
|
||||||
''
|
# ''
|
||||||
function(bufnr)
|
# function(bufnr)
|
||||||
if vim.g.disable_autoformat or vim.b[bufnr].disable_autoformat then
|
# if vim.g.disable_autoformat or vim.b[bufnr].disable_autoformat then
|
||||||
return
|
# return
|
||||||
end
|
# end
|
||||||
|
#
|
||||||
if not slow_format_filetypes[vim.bo[bufnr].filetype] then
|
# if not slow_format_filetypes[vim.bo[bufnr].filetype] then
|
||||||
return
|
# return
|
||||||
end
|
# end
|
||||||
|
#
|
||||||
return { lsp_fallback = true }
|
# return { lsp_fallback = true }
|
||||||
end
|
# end
|
||||||
'';
|
# '';
|
||||||
log_level = "warn";
|
log_level = "warn";
|
||||||
notify_on_error = true;
|
notify_on_error = true;
|
||||||
notify_no_formatters = false;
|
notify_no_formatters = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user