Skip to content

Commit

Permalink
feat(plugin): update format timeout from 1s to 3s
Browse files Browse the repository at this point in the history
  • Loading branch information
tr1v3r committed Feb 8, 2024
1 parent 48366c6 commit 309e7cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/plugins/configs/completion/formatting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ vim.api.nvim_create_user_command("FormatToggleForFt", function(opts)
end, { nargs = 1, complete = "filetype" })

function M.enable_format_on_save(from_config)
local opts = { pattern = "*", timeout = 1000 }
local opts = { pattern = "*", timeout = 3000 }
vim.api.nvim_create_augroup("format_on_save", { clear = true })
vim.api.nvim_create_autocmd("BufWritePre", {
group = "format_on_save",
Expand Down

0 comments on commit 309e7cf

Please sign in to comment.