remove 'nvim-fzf' depedency

main
bhagwan 2 years ago
parent c7dd8ac887
commit f8b447dbbd

@ -51,7 +51,6 @@ at it. That, **and colorful file icons and git indicators!**.
- [`neovim`](https://github.com/neovim/neovim/releases) version > 0.5.0 - [`neovim`](https://github.com/neovim/neovim/releases) version > 0.5.0
- [`fzf`](https://github.com/junegunn/fzf) or - [`fzf`](https://github.com/junegunn/fzf) or
[`skim`](https://github.com/lotabout/skim) binary installed [`skim`](https://github.com/lotabout/skim) binary installed
- [nvim-fzf](https://github.com/vijaymarupudi/nvim-fzf)
- [nvim-web-devicons](https://github.com/kyazdani42/nvim-web-devicons) - [nvim-web-devicons](https://github.com/kyazdani42/nvim-web-devicons)
(optional) (optional)
@ -70,7 +69,6 @@ Using [vim-plug](https://github.com/junegunn/vim-plug)
```vim ```vim
Plug 'ibhagwan/fzf-lua' Plug 'ibhagwan/fzf-lua'
Plug 'vijaymarupudi/nvim-fzf'
Plug 'kyazdani42/nvim-web-devicons' Plug 'kyazdani42/nvim-web-devicons'
``` ```
@ -78,9 +76,8 @@ Using [packer.nvim](https://github.com/wbthomason/packer.nvim)
```lua ```lua
use { 'ibhagwan/fzf-lua', use { 'ibhagwan/fzf-lua',
requires = { -- optional for icon support
'vijaymarupudi/nvim-fzf', requires = { 'kyazdani42/nvim-web-devicons' }
'kyazdani42/nvim-web-devicons' } -- optional for icons
} }
``` ```
> **Note:** if you already have fzf installed you do not need to install `fzf` > **Note:** if you already have fzf installed you do not need to install `fzf`

@ -63,7 +63,6 @@ DEPENDENCIES *fzf-lua-dependencies*
- `neovim` <https://github.com/neovim/neovim/releases> version > 0.5.0 - `neovim` <https://github.com/neovim/neovim/releases> version > 0.5.0
- `fzf` <https://github.com/junegunn/fzf> or - `fzf` <https://github.com/junegunn/fzf> or
`skim` <https://github.com/lotabout/skim> binary installed `skim` <https://github.com/lotabout/skim> binary installed
- nvim-fzf <https://github.com/vijaymarupudi/nvim-fzf>
- nvim-web-devicons <https://github.com/kyazdani42/nvim-web-devicons> - nvim-web-devicons <https://github.com/kyazdani42/nvim-web-devicons>
(optional) (optional)
@ -85,16 +84,14 @@ Using vim-plug <https://github.com/junegunn/vim-plug>
> >
Plug 'ibhagwan/fzf-lua' Plug 'ibhagwan/fzf-lua'
Plug 'vijaymarupudi/nvim-fzf'
Plug 'kyazdani42/nvim-web-devicons' Plug 'kyazdani42/nvim-web-devicons'
< <
Using packer.nvim <https://github.com/wbthomason/packer.nvim> Using packer.nvim <https://github.com/wbthomason/packer.nvim>
> >
use { 'ibhagwan/fzf-lua', use { 'ibhagwan/fzf-lua',
requires = { -- optional for icon support
'vijaymarupudi/nvim-fzf', requires = { 'kyazdani42/nvim-web-devicons' }
'kyazdani42/nvim-web-devicons' } -- optional for icons
} }
< <
Note: if you already have fzf installed you do not need to install fzf or Note: if you already have fzf installed you do not need to install fzf or
@ -414,7 +411,7 @@ Consult the list below for available settings:
files = { files = {
-- previewer = "cat", -- uncomment to override previewer -- previewer = "cat", -- uncomment to override previewer
prompt = 'Files ', prompt = 'Files ',
multiprocess = true, -- run command in a separator process multiprocess = true, -- run command in a separate process
git_icons = true, -- show git icons? git_icons = true, -- show git icons?
file_icons = true, -- show file icons? file_icons = true, -- show file icons?
color_icons = true, -- colorize file|git icons color_icons = true, -- colorize file|git icons
@ -445,7 +442,7 @@ Consult the list below for available settings:
git = { git = {
files = { files = {
prompt = 'GitFiles ', prompt = 'GitFiles ',
multiprocess = false, -- run command in a separator process multiprocess = false, -- run command in a separate process
cmd = 'git ls-files --exclude-standard', cmd = 'git ls-files --exclude-standard',
git_icons = true, -- show git icons? git_icons = true, -- show git icons?
file_icons = true, -- show file icons? file_icons = true, -- show file icons?
@ -499,7 +496,7 @@ Consult the list below for available settings:
grep = { grep = {
prompt = 'Rg ', prompt = 'Rg ',
input_prompt = 'Grep For ', input_prompt = 'Grep For ',
multiprocess = true, -- run command in a separator process multiprocess = true, -- run command in a separate process
git_icons = true, -- show git icons? git_icons = true, -- show git icons?
file_icons = true, -- show file icons? file_icons = true, -- show file icons?
color_icons = true, -- colorize file|git icons color_icons = true, -- colorize file|git icons

@ -1,4 +1,4 @@
-- for testing, copied from: -- modified version of:
-- https://github.com/vijaymarupudi/nvim-fzf/blob/master/lua/fzf/actions.lua -- https://github.com/vijaymarupudi/nvim-fzf/blob/master/lua/fzf/actions.lua
local uv = vim.loop local uv = vim.loop
local path = require "fzf-lua.path" local path = require "fzf-lua.path"
@ -97,15 +97,6 @@ function M.action(fn, fzf_field_expression)
return vim.fn.shellescape(action_string), id return vim.fn.shellescape(action_string), id
end end
-- set to 'true' to use 'nvim-fzf'
-- set to 'false' for debugging using the local version
if false then
M.action = require("fzf.actions").action
M.raw_action = require("fzf.actions").raw_action
M.async_action = require("fzf.actions").async_action
M.raw_async_action = require("fzf.actions").raw_async_action
end
M.preview_action_cmd = function(fn, fzf_field_expression) M.preview_action_cmd = function(fn, fzf_field_expression)
return M.async_action(function(pipe, ...) return M.async_action(function(pipe, ...)

@ -1,4 +1,4 @@
-- for testing, copied from: -- modified version of:
-- https://github.com/vijaymarupudi/nvim-fzf/blob/master/action_helper.lua -- https://github.com/vijaymarupudi/nvim-fzf/blob/master/action_helper.lua
local uv = vim.loop local uv = vim.loop

@ -34,7 +34,6 @@ end
packer.startup({function(use) packer.startup({function(use)
use { 'wbthomason/packer.nvim', opt = true } use { 'wbthomason/packer.nvim', opt = true }
use { 'ibhagwan/fzf-lua', use { 'ibhagwan/fzf-lua',
requires = { 'vijaymarupudi/nvim-fzf' },
config = function() config = function()
vim.api.nvim_set_keymap('n', '<C-p>', vim.api.nvim_set_keymap('n', '<C-p>',
'<Esc>:lua require"fzf-lua".files()<CR>', {}) '<Esc>:lua require"fzf-lua".files()<CR>', {})

Loading…
Cancel
Save