update: nvim: telescope.nvim

This commit is contained in:
qwjyh 2023-03-13 17:07:35 +09:00
parent 52537bd1f3
commit 5b5e9723eb

View file

@ -22,11 +22,6 @@ require('lazy').setup({
require('Comment').setup() require('Comment').setup()
end, end,
}, },
-- fzf
{ 'ibhagwan/fzf-lua',
-- optional icon
--requires = { 'kyazdan142/nvim-web/devicons' } -- not found
},
-- lualine(statusline) -- lualine(statusline)
{ {
'nvim-lualine/lualine.nvim', 'nvim-lualine/lualine.nvim',
@ -54,6 +49,12 @@ require('lazy').setup({
"nvim-treesitter/nvim-treesitter-textobjects", "nvim-treesitter/nvim-treesitter-textobjects",
}, },
}, },
{
'nvim-telescope/telescope.nvim',
dependencies = {
'nvim-lua/plenary.nvim'
},
},
}) })
----------------------------------------------------------- -----------------------------------------------------------
@ -128,6 +129,10 @@ ft.set('satysfi', '%%s')
-- lualine -- lualine
require('lualine_setup') require('lualine_setup')
-----------------------------------------------------------
-- telescope
vim.keymap.set('n', '<c-P>', function() require('telescope.builtin').find_files { sort_lastused = true } end) -- fd?
----------------------------------------------------------- -----------------------------------------------------------
-- Treesitter -- Treesitter
-- manually install parsers with `:TSInstall <language>` -- manually install parsers with `:TSInstall <language>`
@ -364,14 +369,3 @@ cmp.setup.cmdline(':', {
}) })
}) })
-----------------------------------------------------------
-- Ctrl + P to invoke fzf file search
vim.api.nvim_set_keymap('n', '<c-P>',
"<cmd>lua require('fzf-lua').files()<CR>",
{ noremap = true, silent = true })