Skip to content

Commit

Permalink
fix(functions): format on save
Browse files Browse the repository at this point in the history
  • Loading branch information
ecosse3 committed Jul 21, 2024
1 parent 5d411e3 commit 830e804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/config/lsp/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ end
function M.enable_format_on_save()
local group = vim.api.nvim_create_augroup("format_on_save", { clear = false })
vim.api.nvim_create_autocmd("BufWritePre", {
callback = M.format(),
callback = M.format,
group = group,
})
require("notify")("Enabled format on save", "info", { title = "LSP", timeout = 2000 })
Expand Down

0 comments on commit 830e804

Please sign in to comment.