rust stuff for nvim

master
Elias Almqvist 3 months ago
parent b44acee16e
commit 7f909e73d0
No known key found for this signature in database
GPG Key ID: E31A99CE3E75A158
  1. 2
      nvchad/.config/nvim/lua/configs/lspconfig.lua
  2. 8
      nvchad/.config/nvim/lua/plugins/init.lua

@ -3,7 +3,7 @@ local on_init = require("nvchad.configs.lspconfig").on_init
local capabilities = require("nvchad.configs.lspconfig").capabilities local capabilities = require("nvchad.configs.lspconfig").capabilities
local lspconfig = require("lspconfig") 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 -- lsps with default config
for _, lsp in ipairs(servers) do for _, lsp in ipairs(servers) do

@ -30,6 +30,9 @@ local plugins = {
-- c/cpp stuff -- c/cpp stuff
"clangd", "clangd",
"clang-format", "clang-format",
-- rust
"rust-analyzer",
}, },
}, },
}, },
@ -76,6 +79,9 @@ local plugins = {
-- Divine Intellect Languages -- Divine Intellect Languages
lua = { "stylua" }, lua = { "stylua" },
-- rust
rust = { "rustfmt" },
-- Web Dev shit -- Web Dev shit
javascript = { "prettier" }, javascript = { "prettier" },
typescript = { "prettier" }, typescript = { "prettier" },
@ -132,6 +138,8 @@ local plugins = {
"haskell", "haskell",
"python", "python",
"zig", "zig",
"rust",
"vhdl",
}, },
indent = { indent = {
enable = true, enable = true,

Loading…
Cancel
Save