Nvim: add telescope

This commit is contained in:
Marko Korhonen 2022-03-02 17:50:32 +02:00
parent 99a7044e8d
commit d4ba7a72d9
4 changed files with 13 additions and 11 deletions

View File

@ -13,3 +13,4 @@ require 'pluginconf.treesitter'
require 'pluginconf.indent-blankline'
require 'pluginconf.nvim-tree'
require 'pluginconf.colorscheme'
require 'pluginconf.telescope'

View File

@ -22,8 +22,5 @@ MapKey('n', '<C-J>', '<C-W><C-J>')
MapKey('n', '<C-K>', '<C-W><C-K>')
MapKey('n', '<C-L>', '<C-W><C-L>')
-- FZF
MapKey('n', '<C-f>', "<cmd>lua require('fzf-lua').files()<CR>")
-- Run Neoformat
MapKey('n', '<M-f>', '<cmd>Neoformat<CR>')

View File

@ -0,0 +1,3 @@
local telescope = require('telescope')
telescope.setup {}
telescope.load_extension('fzf')

View File

@ -46,11 +46,12 @@ require('packer').startup(function()
-- Tree explorer
use {'kyazdani42/nvim-tree.lua', requires = 'kyazdani42/nvim-web-devicons'}
-- FZF FTW
use { 'ibhagwan/fzf-lua',
-- optional for icon support
requires = { 'kyazdani42/nvim-web-devicons' }
-- Telescope and fzf extension for it
use {
'nvim-telescope/telescope.nvim',
requires = {{'nvim-lua/plenary.nvim'}}
}
use {'nvim-telescope/telescope-fzf-native.nvim', run = 'make'}
-- Do stuff as sudo
use 'lambdalisue/suda.vim'