Skip to content

Commit

Permalink
Remove the mapping for sorry filling.
Browse files Browse the repository at this point in the history
We have code actions now for doing this.

We'll leave the functionality present for a bit longer to see if it's
useful for anything.

If you want a mapping you can map LeanSorryFill.
  • Loading branch information
Julian committed Jun 3, 2024
1 parent 6781f42 commit dab10cc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,6 @@ This can be configured by putting a line at the top of your ``~/.config/nvim/ini
+------------------------+----------------------------------------------------+
| ``<LocalLeader>dt`` | toggle auto diff pin mode without clearing diff pin|
+------------------------+----------------------------------------------------+
| ``<LocalLeader>s`` | insert a ``sorry`` for each open goal |
+------------------------+----------------------------------------------------+
| ``<LocalLeader><Tab>`` | jump into the infoview window associated with the |
| | current lean file |
+------------------------+----------------------------------------------------+
Expand Down
1 change: 0 additions & 1 deletion lua/lean/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ local lean = {
['<LocalLeader>w'] = '<Cmd>LeanInfoviewEnableWidgets<CR>',
['<LocalLeader>W'] = '<Cmd>LeanInfoviewDisableWidgets<CR>',
['<LocalLeader><Tab>'] = '<Cmd>LeanGotoInfoview<CR>',
['<LocalLeader>s'] = '<Cmd>LeanSorryFill<CR>',
['<LocalLeader>\\'] = '<Cmd>LeanAbbreviationsReverseLookup<CR>',
},
i = {},
Expand Down

2 comments on commit dab10cc

@MithicSpirit
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I personally like having this because I've found the code action to be a bit overzealous with deleting stuff (personally, I'd rather it didn't delete anything). I'm fine with it remaining a command without a corresponding default mapping.

@Julian
Copy link
Owner Author

@Julian Julian commented on dab10cc Jun 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to know thanks, will leave the command then.

Please sign in to comment.