mirror of
https://git.korhonen.cc/FunctionalHacker/dotfiles.git
synced 2024-11-16 21:27:44 +00:00
Nvim: add telescope
This commit is contained in:
parent
99a7044e8d
commit
d4ba7a72d9
@ -13,3 +13,4 @@ require 'pluginconf.treesitter'
|
||||
require 'pluginconf.indent-blankline'
|
||||
require 'pluginconf.nvim-tree'
|
||||
require 'pluginconf.colorscheme'
|
||||
require 'pluginconf.telescope'
|
||||
|
@ -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>')
|
||||
|
3
home/.config/nvim/lua/pluginconf/telescope.lua
Normal file
3
home/.config/nvim/lua/pluginconf/telescope.lua
Normal file
@ -0,0 +1,3 @@
|
||||
local telescope = require('telescope')
|
||||
telescope.setup {}
|
||||
telescope.load_extension('fzf')
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user