-- Language module: Rust local shared = require('languages._shared') return { servers = { rust_analyzer = { capabilities = shared.make_capabilities(false), settings = { ['rust-analyzer'] = { check = { command = "clippy", }, completion = { autoimport = { enable = false, }, snippets = { custom = nil, }, }, }, }, }, }, parsers = { "rust", "toml" }, -- Use the rust-analyzer provided by the system package manager. mason_packages = {}, plugins = {}, cmp_filetypes = { rust = { sources = { {name = 'path',}, {name = 'nvim_lsp', keyword_length = 2,}, {name = 'nvim_lsp_signature_help',}, {name = 'buffer', keyword_length = 3,}, -- No snippet sources — prevents completion clutter }, }, }, }