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.indent-blankline'
|
||||||
require 'pluginconf.nvim-tree'
|
require 'pluginconf.nvim-tree'
|
||||||
require 'pluginconf.colorscheme'
|
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-K>', '<C-W><C-K>')
|
||||||
MapKey('n', '<C-L>', '<C-W><C-L>')
|
MapKey('n', '<C-L>', '<C-W><C-L>')
|
||||||
|
|
||||||
-- FZF
|
|
||||||
MapKey('n', '<C-f>', "<cmd>lua require('fzf-lua').files()<CR>")
|
|
||||||
|
|
||||||
-- Run Neoformat
|
-- Run Neoformat
|
||||||
MapKey('n', '<M-f>', '<cmd>Neoformat<CR>')
|
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
|
-- Tree explorer
|
||||||
use {'kyazdani42/nvim-tree.lua', requires = 'kyazdani42/nvim-web-devicons'}
|
use {'kyazdani42/nvim-tree.lua', requires = 'kyazdani42/nvim-web-devicons'}
|
||||||
|
|
||||||
-- FZF FTW
|
-- Telescope and fzf extension for it
|
||||||
use { 'ibhagwan/fzf-lua',
|
use {
|
||||||
-- optional for icon support
|
'nvim-telescope/telescope.nvim',
|
||||||
requires = { 'kyazdani42/nvim-web-devicons' }
|
requires = {{'nvim-lua/plenary.nvim'}}
|
||||||
}
|
}
|
||||||
|
use {'nvim-telescope/telescope-fzf-native.nvim', run = 'make'}
|
||||||
|
|
||||||
-- Do stuff as sudo
|
-- Do stuff as sudo
|
||||||
use 'lambdalisue/suda.vim'
|
use 'lambdalisue/suda.vim'
|
||||||
|
@ -64,8 +65,8 @@ require('packer').startup(function()
|
||||||
-- Install LSP server executables
|
-- Install LSP server executables
|
||||||
use 'williamboman/nvim-lsp-installer'
|
use 'williamboman/nvim-lsp-installer'
|
||||||
|
|
||||||
-- Additional LSP features for Java
|
-- Additional LSP features for Java
|
||||||
use 'mfussenegger/nvim-jdtls'
|
use 'mfussenegger/nvim-jdtls'
|
||||||
|
|
||||||
-- Completion
|
-- Completion
|
||||||
use 'hrsh7th/nvim-cmp' -- Autocompletion plugin
|
use 'hrsh7th/nvim-cmp' -- Autocompletion plugin
|
||||||
|
@ -73,7 +74,7 @@ require('packer').startup(function()
|
||||||
use 'hrsh7th/cmp-path' -- Path source for nvim-cmp
|
use 'hrsh7th/cmp-path' -- Path source for nvim-cmp
|
||||||
use 'saadparwaiz1/cmp_luasnip' -- Snippets source for nvim-cmp
|
use 'saadparwaiz1/cmp_luasnip' -- Snippets source for nvim-cmp
|
||||||
use 'L3MON4D3/LuaSnip' -- Snippets plugin
|
use 'L3MON4D3/LuaSnip' -- Snippets plugin
|
||||||
use "rafamadriz/friendly-snippets" -- Snippets collection
|
use "rafamadriz/friendly-snippets" -- Snippets collection
|
||||||
|
|
||||||
-- treesitter syntax highlight
|
-- treesitter syntax highlight
|
||||||
use {'nvim-treesitter/nvim-treesitter', run = ':TSUpdate'}
|
use {'nvim-treesitter/nvim-treesitter', run = ':TSUpdate'}
|
||||||
|
|
Loading…
Reference in a new issue