Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
RakerZh committed Oct 19, 2024
1 parent 71174d0 commit 1e33ec7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lua/modules/tools/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,14 @@ function config.guard()
ft('rust'):fmt('rustfmt')
ft('typescript', 'javascript', 'typescriptreact', 'javascriptreact'):fmt('prettier')

require('guard').setup()
vim.api.nvim_create_autocmd('User', {
pattern = 'GuardFmt',
callback = function(args)
if args.data.status == 'done' then
vim.diagnostic.show()
end
end,
})
end

function config.noice()
Expand Down

0 comments on commit 1e33ec7

Please sign in to comment.