From 5b5e9723eb4cdee6f2c89e606997facbefd4f4da Mon Sep 17 00:00:00 2001 From: qwjyh Date: Mon, 13 Mar 2023 17:07:35 +0900 Subject: [PATCH] update: nvim: telescope.nvim --- dotfiles/neovim/init.lua | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/dotfiles/neovim/init.lua b/dotfiles/neovim/init.lua index 3e9a021..0796b1b 100644 --- a/dotfiles/neovim/init.lua +++ b/dotfiles/neovim/init.lua @@ -22,11 +22,6 @@ require('lazy').setup({ require('Comment').setup() end, }, - -- fzf - { 'ibhagwan/fzf-lua', - -- optional icon - --requires = { 'kyazdan142/nvim-web/devicons' } -- not found - }, -- lualine(statusline) { 'nvim-lualine/lualine.nvim', @@ -54,6 +49,12 @@ require('lazy').setup({ "nvim-treesitter/nvim-treesitter-textobjects", }, }, + { + 'nvim-telescope/telescope.nvim', + dependencies = { + 'nvim-lua/plenary.nvim' + }, + }, }) ----------------------------------------------------------- @@ -128,6 +129,10 @@ ft.set('satysfi', '%%s') -- lualine require('lualine_setup') +----------------------------------------------------------- +-- telescope +vim.keymap.set('n', '', function() require('telescope.builtin').find_files { sort_lastused = true } end) -- fd? + ----------------------------------------------------------- -- Treesitter -- manually install parsers with `:TSInstall ` @@ -364,14 +369,3 @@ cmp.setup.cmdline(':', { }) }) - - - ------------------------------------------------------------ --- Ctrl + P to invoke fzf file search -vim.api.nvim_set_keymap('n', '', - "lua require('fzf-lua').files()", - { noremap = true, silent = true }) - - -