Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting
| map( | ||
| { "n", "v" }, | ||
| "<leader>f", | ||
| "=", | ||
| vim.tbl_extend("force", default_opts, { remap = true, noremap = false, desc = "Format/indent" }) |
There was a problem hiding this comment.
Avoid overriding the
<leader>f prefix
Binding <leader>f directly to the indent operator consumes the prefix that Telescope uses for its search mappings (<leader>ff, <leader>fg, … in lua/plugins/telescope.lua). After this change, pressing any of those shortcuts fires the new indent command as soon as <leader>f is pressed, leaving the existing search commands unreachable. Unless the intent is to drop all finder mappings, this should use another key or a different prefix.
Useful? React with 👍 / 👎.
Summary
<leader>freuses the built-in=indentation operator for formatting selectionsTesting
https://chatgpt.com/codex/tasks/task_e_68edf3a600f8833184ba65a8fdfb0dde