Add neovim dashboard and which-key plugins
This commit is contained in:
@@ -206,10 +206,27 @@ require("packer").startup(function(use)
|
||||
end,
|
||||
})
|
||||
|
||||
-- Show available keymaps as you type prefixes.
|
||||
use({
|
||||
"folke/which-key.nvim",
|
||||
config = function()
|
||||
require("tracer.plugins.which-key")
|
||||
end,
|
||||
})
|
||||
|
||||
-- Startup dashboard
|
||||
use({
|
||||
"nvimdev/dashboard-nvim",
|
||||
event = "VimEnter",
|
||||
requires = { "nvim-tree/nvim-web-devicons" },
|
||||
config = function()
|
||||
require("tracer.plugins.dashboard")
|
||||
end,
|
||||
})
|
||||
|
||||
-- Fuzzy finder
|
||||
use({
|
||||
"nvim-telescope/telescope.nvim",
|
||||
tag = "0.2.2",
|
||||
requires = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
local ok, dashboard = pcall(require, "dashboard")
|
||||
if not ok then
|
||||
return
|
||||
end
|
||||
|
||||
dashboard.setup({
|
||||
theme = "hyper",
|
||||
config = {
|
||||
week_header = {
|
||||
enable = true,
|
||||
},
|
||||
shortcut = {
|
||||
{
|
||||
desc = " Update",
|
||||
group = "@property",
|
||||
action = "PackerSync",
|
||||
key = "u",
|
||||
},
|
||||
{
|
||||
icon = " ",
|
||||
icon_hl = "@variable",
|
||||
desc = "Files",
|
||||
group = "Label",
|
||||
action = "Telescope find_files",
|
||||
key = "f",
|
||||
},
|
||||
{
|
||||
desc = " Quit",
|
||||
group = "DiagnosticHint",
|
||||
action = "qa",
|
||||
key = "q",
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
@@ -0,0 +1,6 @@
|
||||
local ok, which_key = pcall(require, "which-key")
|
||||
if not ok then
|
||||
return
|
||||
end
|
||||
|
||||
which_key.setup({})
|
||||
Reference in New Issue
Block a user