Skip to content

Commit e2bdc8e

Browse files
author
Ali Shahid
committed
[null-ls.nvim] support RUST format
1 parent 9807933 commit e2bdc8e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lua/plugins/null-ls_nvim.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,14 @@ if vim.fn.executable("djlint") == 1 then
9494
})
9595
end
9696

97+
-- Rust
98+
if vim.fn.executable("rustfmt") == 1 then
99+
load = true
100+
sources[#sources+1] = formatting.rustfmt.with({
101+
command = "rustfmt",
102+
})
103+
end
104+
97105
-- ───────────────❰ end FORMATTING ❱──────────────── --
98106
-- ───────────────────────────────────────────────── --
99107

0 commit comments

Comments
 (0)