Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
tjdevries committed Nov 19, 2021
1 parent e117cd5 commit 1bfc8a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion developers.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ We will now try to define our entry maker for our example by providing an
`entry_maker` to `finders.new_table` and changing our table to be a little bit
more interesting. We will end up with the following new code for `finders.new_table`:

TODO: Explain more about entry_index when that's finalized.

```lua
finder = finders.new_table {
results = {
Expand Down Expand Up @@ -238,7 +240,7 @@ to be more complex with icons and special indicators but `ordinal` could be a si
sorting key.

There are other important keys which can be set but do not make sense in the
current context as we are not dealing wiht files:
current context as we are not dealing with files:
- `path`: to set the absolute path of the file to make sure its always found
- `lnum`: to specify a line number in the file. This will allow the
`conf.grep_previewer` to show that line and the default action to jump to
Expand Down
4 changes: 4 additions & 0 deletions lua/telescope/mappings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,10 @@ local mode_mt = {
rawset(t, k, val)
return val
end,

__newindex = function(t, k, v)
rawset(t, string.lower(k), v)
end,
}

-- Apply the keymaps for a given set of configurations
Expand Down

0 comments on commit 1bfc8a4

Please sign in to comment.