ZIm/docs/src
frederik-uni 07a77792c5
Add completions.lsp_insert_mode setting to control what ranges are replaced when a completion is inserted (#27453)
This PR adds `completions.lsp_insert_mode` and effectively changes the
default from `"replace"` to `"replace_suffix"`, which automatically
detects whether to use the LSP `replace` range instead of `insert`
range.

`"replace_suffix"` was chosen as a default because it's more
conservative than `"replace_subsequence"`, considering that deleting
text is usually faster and less disruptive than having to rewrite a long
replaced word.

Fixes #27197
Fixes #23395 (again)
Fixes #4816 (again)

Release Notes:

- Added new setting `completions.lsp_insert_mode` that changes what will
be replaced when an LSP completion is accepted. The default is
`"replace_suffix"`, but it accepts 4 values: `"insert"` for replacing
only the text before the cursor, `"replace"` for replacing the whole
text, `"replace_suffix"` that acts like `"replace"` when the text after
the cursor is a suffix of the completion, and `"replace_subsequence"`
that acts like `"replace"` when the text around your cursor is a
subsequence of the completion (similiar to a fuzzy match). Check [the
documentation](https://zed.dev/docs/configuring-zed#LSP-Insert-Mode) for
more information.

---------

Co-authored-by: João Marcos <marcospb19@hotmail.com>
Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2025-04-02 16:55:03 -03:00
..
assistant assistant: Add support for claude-3-7-sonnet-thinking (#27085) 2025-03-21 12:29:07 +00:00
development Fix formatting in linux.md (#26598) 2025-03-12 16:33:11 -04:00
extensions docs: Fix rendering of keybind in languages.md (#27217) 2025-03-20 20:25:54 +00:00
languages docs: Add example of Ruby plain minitest task (#27607) 2025-04-02 15:24:59 -04:00
additional-learning-materials.md update docs content (#11374) 2024-05-03 16:24:04 -06:00
channels.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
collaboration.md Clarify guests vs collaborators in project sharing docs (#22945) 2025-01-10 15:42:52 +00:00
completions.md docs: Add improvements to the Completions page (#27612) 2025-03-27 14:18:29 -03:00
configuring-languages.md docs: Clarify wording around ... in language_servers setting (#25782) 2025-02-27 22:27:40 +00:00
configuring-zed.md Add completions.lsp_insert_mode setting to control what ranges are replaced when a completion is inserted (#27453) 2025-04-02 16:55:03 -03:00
development.md Use the development credentials provider in development by default (#25273) 2025-02-20 19:07:16 +00:00
environment.md docs: Fix typo in environment documentation (#19164) 2024-10-13 16:47:09 -04:00
extensions.md docs: Add docs for icon theme extensions (#24155) 2025-02-04 00:23:33 +00:00
fonts.md Fix casing of "macOS" (#17040) 2024-08-28 19:10:49 -04:00
getting-started.md docs: Improve the Getting Started page (#22545) 2025-01-01 17:19:10 +00:00
git.md docs: Improve Git page (#26566) 2025-03-25 09:22:01 -03:00
globs.md Glob documentation (#18789) 2024-10-15 17:21:04 -04:00
icon-themes.md icon_theme_selector: Add footer and related docs (#25042) 2025-02-20 00:02:24 +00:00
key-bindings.md Add documentation for secondary modifier (#27129) 2025-03-19 22:05:33 +00:00
languages.md docs: Add marker to signal which languages are built into Zed (#26913) 2025-03-17 11:27:52 -03:00
linux.md gpui: Provide workaround for AMD Linux driver bug (#26890) 2025-03-18 20:11:09 +00:00
model-improvement.md Debugger implementation (#13433) 2025-03-18 12:55:25 -04:00
multibuffers.md Fix a typo in the multi buffers documentation (#18535) 2024-09-30 15:28:46 +03:00
outline-panel.md docs: Add tweaks to the outline panel page (#18697) 2024-10-03 12:27:42 -03:00
remote-development.md ssh: Allow ssh -F ssh_config (#25619) 2025-02-26 16:23:25 -05:00
repl.md docs: Add tweaks to the REPL page (#18000) 2024-09-18 07:34:39 -03:00
snippets.md docs: Add better snippets documentation (#26853) 2025-03-19 18:05:05 +01:00
SUMMARY.md docs: Add marker to signal which languages are built into Zed (#26913) 2025-03-17 11:27:52 -03:00
system-requirements.md Update macOS system requirements in docs (#22248) 2024-12-19 17:55:46 +00:00
tasks.md Add docs on keybindings to trigger runnables (#25582) 2025-02-26 09:38:22 +00:00
telemetry.md Stop sending data to Clickhouse (#21763) 2024-12-10 08:47:29 -07:00
themes.md docs: Example theme_overrides for docstrings as italic (#19694) 2024-10-24 14:37:57 -04:00
vim.md vim: Add :Git (#27874) 2025-04-01 15:12:36 -06:00
windows.md docs: Fix #windows Discord channel name (#27659) 2025-03-28 08:41:07 -04:00
workspace-persistence.md Update workspace persistence doc (#25271) 2025-02-20 12:51:56 -05:00