update: nvim: telescope.nvim
This commit is contained in:
parent
52537bd1f3
commit
5b5e9723eb
1 changed files with 10 additions and 16 deletions
|
@ -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', '<c-P>', function() require('telescope.builtin').find_files { sort_lastused = true } end) -- fd?
|
||||
|
||||
-----------------------------------------------------------
|
||||
-- Treesitter
|
||||
-- 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 })
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue