added dashboard
This commit is contained in:
44
lua/plugins/dashboard.lua
Normal file
44
lua/plugins/dashboard.lua
Normal file
@@ -0,0 +1,44 @@
|
||||
return {
|
||||
'nvimdev/dashboard-nvim',
|
||||
event = 'VimEnter',
|
||||
lazy = false,
|
||||
config = function()
|
||||
require('dashboard').setup(
|
||||
{
|
||||
theme = 'hyper',
|
||||
config = {
|
||||
week_header = {
|
||||
enable = true,
|
||||
},
|
||||
project = {
|
||||
enable = false,
|
||||
},
|
||||
shortcut = {
|
||||
{ desc = ' Update', group = '@property', action = 'Lazy update', key = 'u' },
|
||||
{
|
||||
icon = ' ',
|
||||
icon_hl = '@variable',
|
||||
desc = 'Files',
|
||||
group = 'Label',
|
||||
action = 'Telescope find_files',
|
||||
key = 'f',
|
||||
},
|
||||
{
|
||||
desc = ' file manager',
|
||||
group = 'Label',
|
||||
action = 'NvimTreeOpen',
|
||||
key = 'e',
|
||||
},
|
||||
{
|
||||
icon = '',
|
||||
desc = ' Quit',
|
||||
group = 'Label',
|
||||
action = 'quitall',
|
||||
key = 'q',
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
dependencies = { {'nvim-tree/nvim-web-devicons'}}
|
||||
}
|
||||
@@ -46,15 +46,4 @@ return {
|
||||
},
|
||||
},
|
||||
},
|
||||
-- {
|
||||
-- "snacks.nvim",
|
||||
-- opts = {
|
||||
-- indent = { enabled = true },
|
||||
-- input = { enabled = true },
|
||||
-- notifier = { enabled = true },
|
||||
-- scope = { enabled = true },
|
||||
-- scroll = { enabled = true },
|
||||
-- statuscolumn = { enabled = false }, -- we set this in options.lua
|
||||
-- }
|
||||
-- },
|
||||
}
|
||||
|
||||
@@ -69,6 +69,7 @@ return { -- adds more detailed bar below the pane
|
||||
config = function()
|
||||
local bufferline = require('bufferline')
|
||||
bufferline.setup{
|
||||
options = {
|
||||
themable = true,
|
||||
numbers = "buffer_id",
|
||||
indicator = {
|
||||
@@ -81,7 +82,7 @@ return { -- adds more detailed bar below the pane
|
||||
left_trunc_marker = ' ',
|
||||
right_trunc_marker = ' ',
|
||||
diagnostics = "nvim_lsp",
|
||||
|
||||
}
|
||||
}
|
||||
end
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user