From 2d8917bd24587b8c6aa8bdd8814fcc37a27773ee Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Sat, 3 Feb 2024 02:34:32 -0600 Subject: refactor: all rust in one config, rename gitsigns to git --- lua/plugins/rust.lua | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) (limited to 'lua/plugins/rust.lua') diff --git a/lua/plugins/rust.lua b/lua/plugins/rust.lua index e4bc53f..358248d 100644 --- a/lua/plugins/rust.lua +++ b/lua/plugins/rust.lua @@ -1,10 +1,21 @@ return { - -- For debugging capabilities, need to change the config - -- from lspconfig into it's own thing, for more: - -- https://www.youtube.com/watch?v=mh_EJhH49Ms - 'rust-lang/rust.vim', - ft = 'rust', - init = function() - vim.g.rustfmt_autosave = 1 - end + { + -- For debugging capabilities, need to change the config + -- from lspconfig into it's own thing, for more: + -- https://www.youtube.com/watch?v=mh_EJhH49Ms + 'rust-lang/rust.vim', + ft = 'rust', + init = function() + vim.g.rustfmt_autosave = 1 + end + }, + { + 'Saecki/crates.nvim', + ft = { 'rust', 'toml' }, + config = function(_, opts) + local crates = require('crates') + crates.setup(opts) + crates.show() + end + }, } -- cgit v1.2.3-54-g00ecf