Update .config/nvim/lua/plugins/alpha.lua
Update .config/nvim/lua/plugins/telescope.lua
This commit is contained in:
parent
ef3219e314
commit
62f381589e
2 changed files with 8 additions and 8 deletions
|
@ -34,7 +34,7 @@ return {
|
||||||
dashboard.section.buttons.val = {
|
dashboard.section.buttons.val = {
|
||||||
dashboard.button("e", " New file", ":ene <BAR> startinsert <CR>"),
|
dashboard.button("e", " New file", ":ene <BAR> startinsert <CR>"),
|
||||||
dashboard.button("f", " Find file", ":Telescope find_files <CR>"),
|
dashboard.button("f", " Find file", ":Telescope find_files <CR>"),
|
||||||
dashboard.button("p", " Open project", ":Telescope projects<CR>"),
|
dashboard.button("p", " Open project", ":Telescope project<CR>"),
|
||||||
}
|
}
|
||||||
alpha.setup(dashboard.opts)
|
alpha.setup(dashboard.opts)
|
||||||
end
|
end
|
||||||
|
|
|
@ -8,14 +8,14 @@ return {
|
||||||
},
|
},
|
||||||
opts = {}, -- define config options here, or use a config() function
|
opts = {}, -- define config options here, or use a config() function
|
||||||
config = function()
|
config = function()
|
||||||
require('telescope').load_extension('projects')
|
require('telescope').load_extension('project')
|
||||||
end,
|
end,
|
||||||
keys = {
|
keys = {
|
||||||
{ '<leader>ff', function() require 'telescope.builtin'.find_files() end, desc = 'Find files', mode = 'n' },
|
{ '<leader>ff', function() require 'telescope.builtin'.find_files() end, desc = 'Find files', mode = 'n' },
|
||||||
{ '<leader>fg', function() require('telescope.builtin').live_grep() end, desc = 'Live grep', mode = 'n' },
|
{ '<leader>fg', function() require('telescope.builtin').live_grep() end, desc = 'Live grep', mode = 'n' },
|
||||||
{ '<leader>fb', function() require('telescope.builtin').buffers() end, desc = 'Buffers', mode = 'n' },
|
{ '<leader>fb', function() require('telescope.builtin').buffers() end, desc = 'Buffers', mode = 'n' },
|
||||||
{ '<leader>fh', function() require('telescope.builtin').help_tags() end, desc = 'Help tags', mode = 'n' },
|
{ '<leader>fh', function() require('telescope.builtin').help_tags() end, desc = 'Help tags', mode = 'n' },
|
||||||
{ '<leader>fp', function() require('telescope').extensions.projects.projects {} end, desc = 'Projects', mode = 'n' },
|
{ '<leader>fp', function() require('telescope').extensions.project.project {} end, desc = 'Projects', mode = 'n' },
|
||||||
{ '<leader>fd', "<cmd>Telescope diagnostics<CR>", desc = 'Diagnostics', mode = 'n' }
|
{ '<leader>fd', "<cmd>Telescope diagnostics<CR>", desc = 'Diagnostics', mode = 'n' }
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue