From 7f909e73d01a6bdcec0099691ce6d2e82df799d6 Mon Sep 17 00:00:00 2001 From: Elias Almqvist Date: Fri, 30 Aug 2024 13:27:35 -0700 Subject: [PATCH] rust stuff for nvim --- nvchad/.config/nvim/lua/configs/lspconfig.lua | 2 +- nvchad/.config/nvim/lua/plugins/init.lua | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/nvchad/.config/nvim/lua/configs/lspconfig.lua b/nvchad/.config/nvim/lua/configs/lspconfig.lua index 440fbd3..e4437ad 100644 --- a/nvchad/.config/nvim/lua/configs/lspconfig.lua +++ b/nvchad/.config/nvim/lua/configs/lspconfig.lua @@ -3,7 +3,7 @@ local on_init = require("nvchad.configs.lspconfig").on_init local capabilities = require("nvchad.configs.lspconfig").capabilities local lspconfig = require("lspconfig") -local servers = { "html", "cssls", "tsserver", "clangd", "rust_analyzer", "vhdl_ls", "hls", "tailwindcss", "pyright", "julials" } +local servers = { "html", "cssls", "tsserver", "clangd", "vhdl_ls", "hls", "tailwindcss", "pyright", "julials" } -- lsps with default config for _, lsp in ipairs(servers) do diff --git a/nvchad/.config/nvim/lua/plugins/init.lua b/nvchad/.config/nvim/lua/plugins/init.lua index b16ee02..f117eb7 100644 --- a/nvchad/.config/nvim/lua/plugins/init.lua +++ b/nvchad/.config/nvim/lua/plugins/init.lua @@ -30,6 +30,9 @@ local plugins = { -- c/cpp stuff "clangd", "clang-format", + + -- rust + "rust-analyzer", }, }, }, @@ -76,6 +79,9 @@ local plugins = { -- Divine Intellect Languages lua = { "stylua" }, + -- rust + rust = { "rustfmt" }, + -- Web Dev shit javascript = { "prettier" }, typescript = { "prettier" }, @@ -132,6 +138,8 @@ local plugins = { "haskell", "python", "zig", + "rust", + "vhdl", }, indent = { enable = true,