Remove fzf-native for now, add telescope keybinds

This commit is contained in:
Marko Korhonen 2021-08-04 11:42:37 +03:00
parent 8603ff03e4
commit 0483f192f8
No known key found for this signature in database
GPG key ID: 911B85FBC6003FE5
3 changed files with 17 additions and 18 deletions

View file

@ -7,9 +7,9 @@ end
-- Open/close nerdtree
map('', '<C-t>', '<cmd>NERDTreeToggle<CR>')
-- FZF
map('n', '<C-f>', '<cmd>Telescope find_files<CR>')
map('n', '<C-g>', '<cmd>Rg<CR>')
-- Telescope
map('n', '<C-f>', '<cmd>Telescope find_files find_command=fd,-Ht,f<CR>')
map('n', '<C-g>', '<cmd>Telescope live_grep<CR>')
-- Completion
-- Navigate completions with tab and shift tab

View file

@ -32,15 +32,5 @@ require('telescope').setup {
-- Developer configurations: Not meant for general override
buffer_previewer_maker = require'telescope.previewers'.buffer_previewer_maker
},
pickers = {find_files = {find_command = {"fd", "-Ht", "f"}}},
extensions = {
fzf = {
fuzzy = true,
override_generic_sorter = false,
override_file_sorter = true,
case_mode = "smart_case"
}
}
pickers = {find_files = {find_command = {"fd", "-Ht", "f"}}}
}
require('telescope').load_extension('fzf');

View file

@ -28,6 +28,7 @@ require('packer').startup(function()
-- Tree explorer
use 'scrooloose/nerdtree'
-- Telescope
use {
'nvim-telescope/telescope.nvim',
requires = {{'nvim-lua/popup.nvim'}, {'nvim-lua/plenary.nvim'}}
@ -39,14 +40,22 @@ require('packer').startup(function()
-- Configs for built-in LSP
use 'neovim/nvim-lspconfig'
-- Install LSP executables
use 'kabouzeid/nvim-lspinstall'
-- Install LSP executables
use 'kabouzeid/nvim-lspinstall'
-- Completion framework
use 'nvim-lua/completion-nvim'
-- Treesitter syntax highlight
use {'nvim-treesitter/nvim-treesitter', branch = '0.5-compat', run = ':TSUpdate'}
-- treesitter syntax highlight
use {
'nvim-treesitter/nvim-treesitter',
branch = '0.5-compat',
run = ':TSUpdate'
}
-- Syntax highlighting for languages
-- that are not supported by treesitter
use 'sheerun/vim-polyglot'
-- Formatter plugin
use 'sbdchd/neoformat'