summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrockerBOO <rockerboo@gmail.com>2020-09-10 13:49:07 -0400
committerrockerBOO <rockerboo@gmail.com>2020-09-10 13:49:07 -0400
commitdabefe0f3e9fa4ce51ee7b406d27854fc16811f2 (patch)
tree1fb33c7c726e9623260ae4ea7e74b6fdea4613fe
parentee42124ecd4c470aed9f6a56db504cc63d6bfc9e (diff)
docs: tabs > spaces, add more optional options
-rw-r--r--README.md18
1 files changed, 10 insertions, 8 deletions
diff --git a/README.md b/README.md
index c2fea2d..cba1ba0 100644
--- a/README.md
+++ b/README.md
@@ -69,11 +69,12 @@ require('telescope.builtin').loclist()
Options can be passed directly to the above functions, or set as defaults.
```lua
+-- Optional way to setup default values
require('telescope').setup{
- default = {
- -- Example:
- shorten_path = true -- currently the default value is true
- }
+ default = {
+ -- Example:
+ shorten_path = true -- currently the default value is true
+ }
}
```
@@ -99,15 +100,16 @@ nnoremap <silent> gr <cmd>lua require'telescope.builtin'.lsp_references{}<CR>
```vim
lua <<EOF
+-- totally optional to use setup
require('telescope').setup{
- default = {
- shorten_path = false -- currently the default value is true
- }
+ default = {
+ shorten_path = false -- currently the default value is true
+ }
}
EOF
nnoremap <c-p> :lua require'telescope.builtin'.find_files{}<CR>
-nnoremap <silent> gr <cmd>lua require'telescope.builtin'.lsp_references{}<CR>
+nnoremap <silent> gr <cmd>lua require'telescope.builtin'.lsp_references{ shorten_path = true }<CR>
```
* Make the paths full size