updated README.md / fixed spelling
This commit is contained in:
25
README.md
25
README.md
@@ -5,17 +5,26 @@ Local file history save and restore for Neovim (requires `nvim-telescope`)
|
|||||||
### Global functions
|
### Global functions
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
-- Remove history for files that no longer exist
|
-- Remove history for files that no longer exist
|
||||||
_G.Nvim_Haven_Clean = M.clean
|
_G.Nvim_Haven_Clean = M.clean
|
||||||
|
|
||||||
-- Disable nvim-haven
|
-- Disable nvim-haven
|
||||||
_G.Nvim_Haven_Disable = M.disable
|
_G.Nvim_Haven_Disable = M.disable
|
||||||
|
|
||||||
-- Enable nvim-haven
|
-- Enable nvim-haven
|
||||||
_G.Nvim_Haven_Enable = M.enable
|
_G.Nvim_Haven_Enable = M.enable
|
||||||
|
|
||||||
-- Display history in telescope
|
-- Display history in telescope
|
||||||
_G.Nvim_Haven_History = M.history
|
_G.Nvim_Haven_History = M.history
|
||||||
|
```
|
||||||
|
|
||||||
|
### Preview navigation keymaps
|
||||||
|
|
||||||
|
```lua
|
||||||
|
map("i", "<c-l>", do_forward_jump)
|
||||||
|
map("n", "<c-l>", do_forward_jump)
|
||||||
|
map("i", "<c-h>", do_reverse_jump)
|
||||||
|
map("n", "<c-h>", do_reverse_jump)
|
||||||
```
|
```
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|||||||
@@ -539,7 +539,7 @@ M.setup = function(config)
|
|||||||
if type(e) ~= "function" then
|
if type(e) ~= "function" then
|
||||||
print_message(
|
print_message(
|
||||||
true,
|
true,
|
||||||
"'exlcusions' contains an entry that is not a function. Skipping all exclusions until this is corrected:"
|
"'exclusions' contains an entry that is not a function. Skipping all exclusions until this is corrected:"
|
||||||
)
|
)
|
||||||
table.print_table(e)
|
table.print_table(e)
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user