diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2024-02-03 02:34:32 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2024-02-03 02:34:32 -0600 |
commit | 2d8917bd24587b8c6aa8bdd8814fcc37a27773ee (patch) | |
tree | aa60e73032e9312f92e9981051fe4d98ce2c497c | |
parent | 06404a4568f783221bb8cb8db9f6ad91f500a77c (diff) |
refactor: all rust in one config, rename gitsigns to git
-rw-r--r-- | lua/plugins/crates.lua | 9 | ||||
-rw-r--r-- | lua/plugins/git.lua (renamed from lua/plugins/gitsigns.lua) | 0 | ||||
-rw-r--r-- | lua/plugins/rust.lua | 27 |
3 files changed, 19 insertions, 17 deletions
diff --git a/lua/plugins/crates.lua b/lua/plugins/crates.lua deleted file mode 100644 index e0c46be..0000000 --- a/lua/plugins/crates.lua +++ /dev/null @@ -1,9 +0,0 @@ -return { - 'Saecki/crates.nvim', - ft = { 'rust', 'toml' }, - config = function(_, opts) - local crates = require('crates') - crates.setup(opts) - crates.show() - end -} diff --git a/lua/plugins/gitsigns.lua b/lua/plugins/git.lua index a40a3dc..a40a3dc 100644 --- a/lua/plugins/gitsigns.lua +++ b/lua/plugins/git.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 + }, } |