nvim/lua/plugins/lspconfig.lua

33 lines
723 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",
},
},
files = {
excludeDirs = {
"pe-template",
},
},
procMacro = {
enable = true,
},
},
},
},
2023-05-13 02:55:45 +00:00
},
},
},
}