switch to telescope.nvim

This commit is contained in:
LordMZTE 2021-09-11 18:13:25 +02:00
parent c90141f0c4
commit 812fc50a6b
3 changed files with 24 additions and 2 deletions

View file

@ -39,7 +39,10 @@ end
-- Getting stuck in ~~vim~~ terminal -- Getting stuck in ~~vim~~ terminal
map("t", "<Esc>", "<C-\\><C-n>", {}) map("t", "<Esc>", "<C-\\><C-n>", {})
map("n", "fzf", ":FZF<CR>", { silent = true })
-- telescope
map("n", "ff", "<cmd>Telescope find_files<cr>", { silent = true })
map("n", "fg", "<cmd>Telescope live_grep<cr>", { silent = true })
-- Quick cursor movement -- Quick cursor movement
map("n", "<C-Down>", "5j", { noremap = true }) map("n", "<C-Down>", "5j", { noremap = true })

View file

@ -0,0 +1,13 @@
require("telescope").setup {
defaults = {
vimgrep_arguments = {
'rg',
'--color=never',
'--no-heading',
'--with-filename',
'--line-number',
'--column',
'--smart-case'
}
}
}

View file

@ -14,7 +14,6 @@ return require("packer").startup(function(use)
} }
use "ryanoasis/vim-devicons" use "ryanoasis/vim-devicons"
use "cespare/vim-toml" use "cespare/vim-toml"
use "junegunn/fzf"
use { use {
"dracula/vim", "dracula/vim",
as = "dracula" as = "dracula"
@ -59,4 +58,11 @@ return require("packer").startup(function(use)
requires = "nvim-lua/plenary.nvim" requires = "nvim-lua/plenary.nvim"
} }
use "ron-rs/ron.vim" use "ron-rs/ron.vim"
use {
"nvim-telescope/telescope.nvim",
requires = "nvim-lua/plenary.nvim",
config = pconf("telescope")
}
end) end)