mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-12-14 07:43:49 +01:00
switch to telescope.nvim
This commit is contained in:
parent
c90141f0c4
commit
812fc50a6b
3 changed files with 24 additions and 2 deletions
|
@ -39,7 +39,10 @@ end
|
|||
|
||||
-- Getting stuck in ~~vim~~ terminal
|
||||
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
|
||||
map("n", "<C-Down>", "5j", { noremap = true })
|
||||
|
|
13
.config/nvim/lua/pluginconf/telescope.lua
Normal file
13
.config/nvim/lua/pluginconf/telescope.lua
Normal file
|
@ -0,0 +1,13 @@
|
|||
require("telescope").setup {
|
||||
defaults = {
|
||||
vimgrep_arguments = {
|
||||
'rg',
|
||||
'--color=never',
|
||||
'--no-heading',
|
||||
'--with-filename',
|
||||
'--line-number',
|
||||
'--column',
|
||||
'--smart-case'
|
||||
}
|
||||
}
|
||||
}
|
|
@ -14,7 +14,6 @@ return require("packer").startup(function(use)
|
|||
}
|
||||
use "ryanoasis/vim-devicons"
|
||||
use "cespare/vim-toml"
|
||||
use "junegunn/fzf"
|
||||
use {
|
||||
"dracula/vim",
|
||||
as = "dracula"
|
||||
|
@ -59,4 +58,11 @@ return require("packer").startup(function(use)
|
|||
requires = "nvim-lua/plenary.nvim"
|
||||
}
|
||||
use "ron-rs/ron.vim"
|
||||
|
||||
use {
|
||||
"nvim-telescope/telescope.nvim",
|
||||
requires = "nvim-lua/plenary.nvim",
|
||||
config = pconf("telescope")
|
||||
}
|
||||
end)
|
||||
|
||||
|
|
Loading…
Reference in a new issue