You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/rustaceanvim.txt
+7-6Lines changed: 7 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -96,7 +96,7 @@ vim.g.rustaceanvim = {
96
96
on_attach = function(client, bufnr)
97
97
-- Set keybindings, etc. here.
98
98
end,
99
-
settings = {
99
+
default_settings = {
100
100
-- rust-analyzer language server configuration
101
101
['rust-analyzer'] = {
102
102
},
@@ -209,11 +209,11 @@ RustcOpts *RustcOpts*
209
209
RustaceanLspClientOpts *RustaceanLspClientOpts*
210
210
211
211
Fields: ~
212
-
{auto_attach?} (boolean|fun(bufnr:integer):boolean) Whether to automatically attach the LSP client. Defaults to `true` if the `rust-analyzer` executable is found.
213
-
{cmd?} (string[]|fun():string[]) Command and arguments for starting rust-analyzer
214
-
{settings?} (table|fun(project_root:string|nil):table) 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.
215
-
{standalone?} (boolean) Standalone file support (enabled by default). Disabling it may improve rust-analyzer's startup time.
216
-
{logfile?} (string) The path to the rust-analyzer log file.
212
+
{auto_attach?} (boolean|fun(bufnr:integer):boolean) Whether to automatically attach the LSP client. Defaults to `true` if the `rust-analyzer` executable is found.
213
+
{cmd?} (string[]|fun():string[]) Command and arguments for starting rust-analyzer
214
+
{settings?} (table|fun(project_root:string|nil,default_settings:table):table) 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.
215
+
{standalone?} (boolean) Standalone file support (enabled by default). Disabling it may improve rust-analyzer's startup time.
216
+
{logfile?} (string) The path to the rust-analyzer log file.
---@fieldauto_attach? boolean | fun(bufnr: integer):boolean Whether to automatically attach the LSP client. Defaults to `true` if the `rust-analyzer` executable is found.
104
104
---@fieldcmd? string[] | fun():string[] Command and arguments for starting rust-analyzer
105
-
---@fieldsettings? table | fun(project_root:string|nil):table 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.
105
+
---@fieldsettings? table | fun(project_root:string|nil, default_settings: table):table 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.
106
106
---@fieldstandalone? boolean Standalone file support (enabled by default). Disabling it may improve rust-analyzer's startup time.
107
107
---@fieldlogfile? string The path to the rust-analyzer log file.
0 commit comments