Skip to content
This repository was archived by the owner on Jan 3, 2024. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,13 @@ local opts = {
-- automatically call RustReloadWorkspace when writing to a Cargo.toml file.
reload_workspace_from_cargo_toml = true,

code_action_group = {
-- Function with signature of `vim.ui.select` used to display the code_actions
-- default: require("rust-tools.code_action_group").telescope_select(),
selector = require("rust-tools.code_action_group").telescope_select(),
-- selector = vim.ui.select,
},

-- These apply to the default RustSetInlayHints command
inlay_hints = {
-- automatically set inlay hints (type hints)
Expand Down
9 changes: 8 additions & 1 deletion doc/rust-tools.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*rust-tools.txt* For NVIM v0.8.0 Last change: 2023 February 20
*rust-tools.txt* For NVIM v0.8.0 Last change: 2023 March 06

==============================================================================
Table of Contents *rust-tools-table-of-contents*
Expand Down Expand Up @@ -163,6 +163,13 @@ for keys that are not provided.
-- automatically call RustReloadWorkspace when writing to a Cargo.toml file.
reload_workspace_from_cargo_toml = true,

code_action_group = {
-- Function with signature of `vim.ui.select` used to display the code_actions
-- default: require("rust-tools.code_action_group").telescope_select(),
selector = require("rust-tools.code_action_group").telescope_select(),
-- selector = vim.ui.select,
},

-- These apply to the default RustSetInlayHints command
inlay_hints = {
-- automatically set inlay hints (type hints)
Expand Down
Loading