Skip to content

Commit 8a6e402

Browse files
authored
Merge pull request #4 from m99coder/3-format-on-save-rust
enable “format on save” for `.rs` files
2 parents 8e5a542 + 0b28f67 commit 8a6e402

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ vim.cmd [[
335335
]]
336336
vim.cmd [[
337337
autocmd BufWritePre *.ts lua vim.lsp.buf.format({ async = true })
338+
autocmd BufWritePre *.rs lua vim.lsp.buf.format({ async = true })
338339
]]
339340

340341
vim.fn.sign_define(

0 commit comments

Comments
 (0)