plugins.rustaceanvim.settings.server.default_settings

Setting passed to rust-analyzer. Defaults to a function that looks for a rust-analyzer.json file or returns an empty table. See https://rust-analyzer.github.io/manual.html#configuration.

This can also be the definition of a function: fun(project_root:string|nil, default_settings: table|nil):table

Plugin default:

  function(project_root, default_settings)
    return require('rustaceanvim.config.server').load_rust_analyzer_settings(project_root, { default_settings = default_settings })
  end

Type: null or lua function string or (attribute set of anything)

Default: null

Declared by: