Add fzf-lua

This commit is contained in:
Alex Yatskov 2024-04-16 12:25:52 -07:00
parent 54b0a69482
commit 67b7444ac3
3 changed files with 11 additions and 15 deletions

3
.gitmodules vendored
View File

@ -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

View File

@ -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

@ -0,0 +1 @@
Subproject commit 743647f639a83e41e283d2d7daa03a85e1fbf951