diff options
| -rw-r--r-- | fish/functions/bathelp.fish | 2 | ||||
| -rw-r--r-- | fish/functions/nvim.fish | 2 | ||||
| -rw-r--r-- | nvim/lua/plugins/telescope.lua | 5 |
3 files changed, 6 insertions, 3 deletions
diff --git a/fish/functions/bathelp.fish b/fish/functions/bathelp.fish index 3f6119a..ca7e227 100644 --- a/fish/functions/bathelp.fish +++ b/fish/functions/bathelp.fish @@ -2,5 +2,5 @@ function bathelp --wraps=bat --description 'bat(1) pra ler comandos de ajuda com if not command --query bat exit 1 end - command $argv[1] --help | bat --plain --language help + command $argv --help | bat --plain --language help end diff --git a/fish/functions/nvim.fish b/fish/functions/nvim.fish index 27b45d8..efbd5e6 100644 --- a/fish/functions/nvim.fish +++ b/fish/functions/nvim.fish @@ -1,6 +1,6 @@ function nvim --wraps nvim --description 'open a new nvim instance or connect to an existing one using nvr(1)' # if `nvr` is not installed, nevermind. just run `nvim` - if ! command -q nvr + if ! command --query nvr command nvim $argv end diff --git a/nvim/lua/plugins/telescope.lua b/nvim/lua/plugins/telescope.lua index 3ec0a7b..c638529 100644 --- a/nvim/lua/plugins/telescope.lua +++ b/nvim/lua/plugins/telescope.lua @@ -17,7 +17,10 @@ return { "<leader>ts", "<Cmd>Telescope lsp_document_symbols<CR>", desc = "Find LSP symbols in document" }, { - "<leader>tg", "<Cmd>Telescope live_grep<CR>", desc = "Find arbitrary strings in files" + "<leader>tg", "<Cmd>Telescope git_status<CR>", desc = "Find files in git status" + }, + { + "<leader>tr", "<Cmd>Telescope live_grep<CR>", desc = "Find arbitrary strings in files" }, { "<leader>td", "<Cmd>Telescope diagnostics<CR>", desc = "Find diagnostics" |
