summaryrefslogtreecommitdiff
path: root/lua/plugins/rust.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/plugins/rust.lua')
-rw-r--r--lua/plugins/rust.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/lua/plugins/rust.lua b/lua/plugins/rust.lua
new file mode 100644
index 0000000..e4bc53f
--- /dev/null
+++ b/lua/plugins/rust.lua
@@ -0,0 +1,10 @@
+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
+}