diff --git a/README.md b/README.md index 11f9cc4..5a5921f 100644 --- a/README.md +++ b/README.md @@ -113,17 +113,17 @@ require('telescope').setup({ For a particular command you can pass it directly in your key mapping to the function: ```lua -require('telescope').extension.orgmode.search_headings({ max_depth = 3 }) +require('telescope').extensions.orgmode.search_headings({ max_depth = 3 }) ``` You can also create a key mapping, that allows you to search directly for org files: ```lua -vim.set.keymap( +vim.keymap.set( "n", - "off", + "off", function() - require('telescope').extension.orgmode.search_headings({ mode = "orgfiles" }) + require('telescope').extensions.orgmode.search_headings({ mode = "orgfiles" }) end, { desc = "Find org files"} )