nvim/lua/plugins/lspconfig.lua

38 lines
850 B
Lua
Raw Normal View History

2023-05-13 02:55:45 +00:00
return {
{
"neovim/nvim-lspconfig",
---@class PluginLspOpts
opts = {
---@type lspconfig.options
servers = {
-- pyright will be automatically installed with mason and loaded with lspconfig
2023-08-11 16:40:21 +00:00
rust_analyzer = {
mason = false,
settings = {
["rust-analyzer"] = {
imports = {
granularity = {
group = "module",
},
},
2023-10-02 03:27:12 +00:00
cargo = {
buildScripts = {
enable = false,
},
},
2023-08-11 16:40:21 +00:00
files = {
excludeDirs = {
"pe-template",
},
},
procMacro = {
enable = true,
},
},
},
},
2023-05-13 02:55:45 +00:00
},
},
},
}