From 338a1ef6a2790438ac8a6580029c8bb2a34c7199 Mon Sep 17 00:00:00 2001 From: bhagwan Date: Thu, 16 Dec 2021 22:26:44 -0800 Subject: [PATCH] README update --- README.md | 12 +++++------- doc/fzf-lua.txt | 12 +++++------- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index a091c90..fda1780 100644 --- a/README.md +++ b/README.md @@ -213,7 +213,7 @@ Consult the list below for available settings: ```lua local actions = require "fzf-lua.actions" require'fzf-lua'.setup { - global_resume = true, -- enable `resume` provider? + global_resume = true, -- enable global `resume`? winopts = { -- split = "belowright new",-- open in a split instead? -- "belowright new" : split below @@ -399,7 +399,7 @@ require'fzf-lua'.setup { -- replace the default aciton with the below -- to open all files whether single or multiple -- ["default"] = actions.file_edit, - ["default"] = actions.file_edit_or_qf, + ["default"] = actions.file_edit_or_qf, ["ctrl-s"] = actions.file_split, ["ctrl-v"] = actions.file_vsplit, ["ctrl-t"] = actions.file_tabedit, @@ -411,8 +411,8 @@ require'fzf-lua'.setup { git = { files = { prompt = 'GitFiles❯ ', - multiprocess = false, -- run command in a separate process cmd = 'git ls-files --exclude-standard', + multiprocess = false, -- run command in a separate process git_icons = true, -- show git icons? file_icons = true, -- show file icons? color_icons = true, -- colorize file|git icons @@ -457,6 +457,7 @@ require'fzf-lua'.setup { ["D"] = { icon = "D", color = "red" }, ["A"] = { icon = "A", color = "green" }, ["?"] = { icon = "?", color = "magenta" }, + -- override git icons? -- ["M"] = { icon = "★", color = "red" }, -- ["D"] = { icon = "✗", color = "red" }, -- ["A"] = { icon = "+", color = "green" }, @@ -475,10 +476,7 @@ require'fzf-lua'.setup { -- cmd = "rg --vimgrep", rg_opts = "--column --line-number --no-heading --color=always --smart-case --max-columns=512", grep_opts = "--binary-files=without-match --line-number --recursive --color=auto --perl-regexp", - -- 'true' enables file and git icons in 'live_grep' - -- degrades performance in large datasets, YMMV - experimental = false, - -- live_grep_glob options + -- 'live_grep_glob' options: glob_flag = "--iglob", -- for case sensitive globs use '--glob' glob_separator = "%s%-%-" -- query separator pattern (lua): ' --' }, diff --git a/doc/fzf-lua.txt b/doc/fzf-lua.txt index 794848e..91ecc20 100644 --- a/doc/fzf-lua.txt +++ b/doc/fzf-lua.txt @@ -247,7 +247,7 @@ Consult the list below for available settings: > local actions = require "fzf-lua.actions" require'fzf-lua'.setup { - global_resume = true, -- enable `resume` provider? + global_resume = true, -- enable global `resume`? winopts = { -- split = "belowright new",-- open in a split instead? -- "belowright new" : split below @@ -433,7 +433,7 @@ Consult the list below for available settings: -- replace the default aciton with the below -- to open all files whether single or multiple -- ["default"] = actions.file_edit, - ["default"] = actions.file_edit_or_qf, + ["default"] = actions.file_edit_or_qf, ["ctrl-s"] = actions.file_split, ["ctrl-v"] = actions.file_vsplit, ["ctrl-t"] = actions.file_tabedit, @@ -445,8 +445,8 @@ Consult the list below for available settings: git = { files = { prompt = 'GitFiles❯ ', - multiprocess = false, -- run command in a separate process cmd = 'git ls-files --exclude-standard', + multiprocess = false, -- run command in a separate process git_icons = true, -- show git icons? file_icons = true, -- show file icons? color_icons = true, -- colorize file|git icons @@ -491,6 +491,7 @@ Consult the list below for available settings: ["D"] = { icon = "D", color = "red" }, ["A"] = { icon = "A", color = "green" }, ["?"] = { icon = "?", color = "magenta" }, + -- override git icons? -- ["M"] = { icon = "★", color = "red" }, -- ["D"] = { icon = "✗", color = "red" }, -- ["A"] = { icon = "+", color = "green" }, @@ -509,10 +510,7 @@ Consult the list below for available settings: -- cmd = "rg --vimgrep", rg_opts = "--column --line-number --no-heading --color=always --smart-case --max-columns=512", grep_opts = "--binary-files=without-match --line-number --recursive --color=auto --perl-regexp", - -- 'true' enables file and git icons in 'live_grep' - -- degrades performance in large datasets, YMMV - experimental = false, - -- live_grep_glob options + -- 'live_grep_glob' options: glob_flag = "--iglob", -- for case sensitive globs use '--glob' glob_separator = "%s%-%-" -- query separator pattern (lua): ' --' },