summaryrefslogtreecommitdiff
path: root/lua/plugins/rust.lua
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2024-02-01 14:38:24 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2024-02-01 14:38:24 -0600
commit130eede87d4dee6aee31157417f90f7bacb1525f (patch)
treea08b22a71f26833368e50df37e249f9b9e867bd4 /lua/plugins/rust.lua
parentd9e3da291a1748d9b1c8efebcd6d12cbf092c3c6 (diff)
feat: add rust support
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
+}