Add fzf-lua
This commit is contained in:
parent
54b0a69482
commit
67b7444ac3
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -100,3 +100,6 @@
|
|||||||
[submodule "pack/plugins/start/vim-jdaddy"]
|
[submodule "pack/plugins/start/vim-jdaddy"]
|
||||||
path = pack/plugins/start/vim-jdaddy
|
path = pack/plugins/start/vim-jdaddy
|
||||||
url = https://github.com/tpope/vim-jdaddy.git
|
url = https://github.com/tpope/vim-jdaddy.git
|
||||||
|
[submodule "pack/plugins/start/fzf-lua"]
|
||||||
|
path = pack/plugins/start/fzf-lua
|
||||||
|
url = https://github.com/ibhagwan/fzf-lua.git
|
||||||
|
@ -1,22 +1,14 @@
|
|||||||
-- comment.nvim
|
-- comment.nvim
|
||||||
require('Comment').setup()
|
require('Comment').setup()
|
||||||
|
|
||||||
-- fzf.vim
|
-- fzf-lua
|
||||||
if vim.fn.executable('fzf') == 1 then
|
if vim.fn.executable('fzf') == 1 then
|
||||||
vim.cmd([[
|
vim.keymap.set('n', '<leader>fb', require('fzf-lua').buffers)
|
||||||
command! -bang -nargs=* Fs
|
vim.keymap.set('n', '<leader>fg', require('fzf-lua').git_files)
|
||||||
\ call fzf#vim#grep(
|
vim.keymap.set('n', '<leader>fh', require('fzf-lua').oldfiles)
|
||||||
\ 'git grep --line-number -- '.shellescape(<q-args>), 0,
|
vim.keymap.set('n', '<leader>fl', require('fzf-lua').lines)
|
||||||
\ fzf#vim#with_preview({'dir': systemlist('git rev-parse --show-toplevel')[0]}), <bang>0)
|
vim.keymap.set('n', '<leader>fp', require('fzf-lua').grep)
|
||||||
]])
|
vim.keymap.set('n', '<leader>fs', require('fzf-lua').live_grep_native)
|
||||||
|
|
||||||
vim.keymap.set('n', '<leader>fg', vim.cmd.GFiles)
|
|
||||||
vim.keymap.set('n', '<leader>fs', vim.cmd.Fs)
|
|
||||||
vim.keymap.set('n', '<leader>fh', vim.cmd.History)
|
|
||||||
vim.keymap.set('n', '<leader>fb', vim.cmd.Buffers)
|
|
||||||
vim.keymap.set('n', '<leader>fl', vim.cmd.Lines)
|
|
||||||
|
|
||||||
vim.fn.setenv('BAT_THEME', 'Nord')
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- guid.nvim
|
-- guid.nvim
|
||||||
|
1
pack/plugins/start/fzf-lua
Submodule
1
pack/plugins/start/fzf-lua
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 743647f639a83e41e283d2d7daa03a85e1fbf951
|
Loading…
Reference in New Issue
Block a user