From c39f60411be98d3fd09eca59a63e26ba334e8b4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Sun, 13 Jul 2025 17:00:33 +0200 Subject: [PATCH] document inline codeaction --- docs/code_actions.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/code_actions.md b/docs/code_actions.md index 3e4d65c..1f77517 100644 --- a/docs/code_actions.md +++ b/docs/code_actions.md @@ -167,3 +167,14 @@ https://nixos.org ```nix "https://nixos.org" ``` + +### `inline` + +Rewrite a binding to its definition. +```nix +let id = x: x; in a 1 +``` +=> +```nix +let id = x: x; in (x: x) 1 +```