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'
@ -64,8 +65,8 @@ require('packer').startup(function()
-- Install LSP server executables
use 'williamboman/nvim-lsp-installer'
-- Additional LSP features for Java
use 'mfussenegger/nvim-jdtls'
-- Additional LSP features for Java
use 'mfussenegger/nvim-jdtls'
-- Completion
use 'hrsh7th/nvim-cmp' -- Autocompletion plugin
@ -73,7 +74,7 @@ require('packer').startup(function()
use 'hrsh7th/cmp-path' -- Path source for nvim-cmp
use 'saadparwaiz1/cmp_luasnip' -- Snippets source for nvim-cmp
use 'L3MON4D3/LuaSnip' -- Snippets plugin
use "rafamadriz/friendly-snippets" -- Snippets collection
use "rafamadriz/friendly-snippets" -- Snippets collection
-- treesitter syntax highlight
use {'nvim-treesitter/nvim-treesitter', run = ':TSUpdate'}