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 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

@ -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,

Loading…
Cancel
Save