2023-12-14 11:49:45 +00:00
|
|
|
-- return {}
|
|
|
|
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"] = {
|
|
|
|
rustfmt = {
|
|
|
|
overrideCommand = { "leptosfmt", "--stdin", "--rustfmt" },
|
|
|
|
},
|
|
|
|
imports = {
|
|
|
|
granularity = {
|
|
|
|
group = "module",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cargo = {
|
|
|
|
buildScripts = {
|
|
|
|
enable = false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
files = {
|
|
|
|
excludeDirs = {
|
|
|
|
"pe-template",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
procMacro = {
|
|
|
|
enable = true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
tailwindcss = {
|
|
|
|
init_options = {
|
|
|
|
userLanguages = {
|
|
|
|
rust = "html",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
filetypes = { "rust" },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|