aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorpml68 <contact@pml68.me>2024-12-03 23:02:28 +0100
committerpml68 <contact@pml68.me>2024-12-03 23:02:28 +0100
commit58d4f70f276711b4c0a80f23f394b68d16d19a82 (patch)
treebb42b02c093b9cda388a3549aba10b4480bff5c7 /lua
parentfeat(plugins): add workspace-diagnostics.nvim and ccc.nvim (diff)
downloadnvim-58d4f70f276711b4c0a80f23f394b68d16d19a82.tar.gz
refactor(plugins): replace rust.vim with fmt("rustfmt") in guard.nvim
Diffstat (limited to '')
-rw-r--r--lua/pml68/plugins/guard.lua1
-rw-r--r--lua/pml68/plugins/lang-specific.lua7
2 files changed, 1 insertions, 7 deletions
diff --git a/lua/pml68/plugins/guard.lua b/lua/pml68/plugins/guard.lua
index 86cdfd2..7bdc7a7 100644
--- a/lua/pml68/plugins/guard.lua
+++ b/lua/pml68/plugins/guard.lua
@@ -8,6 +8,7 @@ return {
local ft = require("guard.filetype")
ft("c,cpp,h"):fmt("clang-format")
+ ft("rust"):fmt("rustfmt")
ft("json"):fmt({
cmd = "jq",
stdin = true
diff --git a/lua/pml68/plugins/lang-specific.lua b/lua/pml68/plugins/lang-specific.lua
index e4118fa..782e207 100644
--- a/lua/pml68/plugins/lang-specific.lua
+++ b/lua/pml68/plugins/lang-specific.lua
@@ -15,13 +15,6 @@ return {
},
-- Rust
{
- "rust-lang/rust.vim",
- ft = "rust",
- init = function()
- vim.g.rustfmt_autosave = 1
- end,
- },
- {
"saecki/crates.nvim",
tag = "stable",
dependencies = "hrsh7th/nvim-cmp",