telescope.nvim => fzf.nvim

This commit is contained in:
Alex Yatskov 2022-10-22 09:40:06 -07:00
parent 45c62ae393
commit 5a9c1739ed
6 changed files with 9 additions and 38 deletions

9
.gitmodules vendored
View File

@ -82,12 +82,9 @@
[submodule "pack/plugins/opt/hflip.nvim"] [submodule "pack/plugins/opt/hflip.nvim"]
path = pack/plugins/start/hflip.nvim path = pack/plugins/start/hflip.nvim
url = https://github.com/FooSoft/hflip.nvim.git url = https://github.com/FooSoft/hflip.nvim.git
[submodule "pack/plugins/opt/telescope.nvim"]
path = pack/plugins/start/telescope.nvim
url = https://github.com/nvim-telescope/telescope.nvim.git
[submodule "pack/plugins/opt/telescope-fzf-native.nvim"]
path = pack/plugins/start/telescope-fzf-native.nvim
url = https://github.com/nvim-telescope/telescope-fzf-native.nvim.git
[submodule "pack/plugins/start/vim-rooter"] [submodule "pack/plugins/start/vim-rooter"]
path = pack/plugins/start/vim-rooter path = pack/plugins/start/vim-rooter
url = https://github.com/airblade/vim-rooter.git url = https://github.com/airblade/vim-rooter.git
[submodule "pack/plugins/start/fzf.vim"]
path = pack/plugins/start/fzf.vim
url = https://github.com/junegunn/fzf.vim.git

View File

@ -1,5 +1,2 @@
#!/bin/bash #!/bin/bash
git submodule update --init --recursive git submodule update --init --recursive
pushd pack/plugins/start/telescope-fzf-native.nvim
make
popd

View File

@ -1,30 +1,8 @@
-- telescope.nvim -- fzf.vim
local telescope = require('telescope') vim.keymap.set('n', '<leader>fg', vim.cmd.GFiles)
if telescope then vim.keymap.set('n', '<leader>fh', vim.cmd.History)
local telescope_builtin = require('telescope.builtin') vim.keymap.set('n', '<leader>fb', vim.cmd.Buffers)
if telescope_builtin then vim.keymap.set('n', '<leader>fl', vim.cmd.Lines)
vim.keymap.set('n', '<space>fb', telescope_builtin.buffers, {})
vim.keymap.set('n', '<space>fg', telescope_builtin.git_files, {})
vim.keymap.set('n', '<space>fh', telescope_builtin.oldfiles, {})
vim.keymap.set('n', '<space>fr', telescope_builtin.reloader, {})
vim.keymap.set('n', '<space>fs', telescope_builtin.spell_suggest, {})
end
local telescope_actions = require('telescope.actions')
telescope.setup {
defaults = {
mappings = {
i = {
['<c-j>'] = telescope_actions.move_selection_next,
['<c-k>'] = telescope_actions.move_selection_previous,
['<esc>'] = telescope_actions.close,
},
},
}
}
telescope.load_extension('fzf')
end
-- hflip.nvim -- hflip.nvim
vim.keymap.set('n', 'gfs', vim.cmd.HFlip) vim.keymap.set('n', 'gfs', vim.cmd.HFlip)

@ -0,0 +1 @@
Subproject commit 9ceac718026fd39498d95ff04fa04d3e40c465d7

@ -1 +0,0 @@
Subproject commit 65c0ee3d4bb9cb696e262bca1ea5e9af3938fc90

@ -1 +0,0 @@
Subproject commit f174a0367b4fc7cb17710d867e25ea792311c418