nvim/lua/plugins/lspconfig.lua
2023-10-01 20:27:12 -07:00

37 lines
850 B
Lua

return {
{
"neovim/nvim-lspconfig",
---@class PluginLspOpts
opts = {
---@type lspconfig.options
servers = {
-- pyright will be automatically installed with mason and loaded with lspconfig
rust_analyzer = {
mason = false,
settings = {
["rust-analyzer"] = {
imports = {
granularity = {
group = "module",
},
},
cargo = {
buildScripts = {
enable = false,
},
},
files = {
excludeDirs = {
"pe-template",
},
},
procMacro = {
enable = true,
},
},
},
},
},
},
},
}