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'
|
||||
@ -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'}
|
||||
|
Loading…
Reference in New Issue
Block a user