chore: add better interface
This commit is contained in:
parent
f97b580ebe
commit
f61ee4f4df
2
init.lua
2
init.lua
|
|
@ -993,7 +993,7 @@ require('lazy').setup({
|
||||||
require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps
|
require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps
|
||||||
require 'kickstart.plugins.devstack',
|
require 'kickstart.plugins.devstack',
|
||||||
require 'kickstart.plugins.theme',
|
require 'kickstart.plugins.theme',
|
||||||
|
require 'kickstart.plugins.dashboard',
|
||||||
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
|
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
|
||||||
-- This is the easiest way to modularize your config.
|
-- This is the easiest way to modularize your config.
|
||||||
--
|
--
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,32 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
'glepnir/dashboard-nvim',
|
||||||
|
event = 'VimEnter',
|
||||||
|
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||||
|
config = function()
|
||||||
|
local dashboard = require 'dashboard'
|
||||||
|
dashboard.setup {
|
||||||
|
theme = 'hyper',
|
||||||
|
config = {
|
||||||
|
header = {
|
||||||
|
' They taking the bits to...', -- small tagline line
|
||||||
|
'',
|
||||||
|
' ██╗███████╗███████╗███╗ ██╗ ██████╗ ██╗ ██╗ █████╗ ██████╗ ██████╗ ',
|
||||||
|
' ██║██╔════╝██╔════╝████╗ ██║██╔════╝ ██║ ██║██╔══██╗██╔══██╗██╔══██╗ ',
|
||||||
|
' ██║███████╗█████╗ ██╔██╗ ██║██║ ███╗██║ ██║███████║██████╔╝██║ ██║ ',
|
||||||
|
' ██║╚════██║██╔══╝ ██║╚██╗██║██║ ██║██║ ██║██╔══██║██╔══██╗██║ ██║ ',
|
||||||
|
' ██║███████║███████╗██║ ╚████║╚██████╔╝╚██████╔╝██║ ██║██║ ██║██████╔╝ ',
|
||||||
|
' ╚═╝╚══════╝╚══════╝╚═╝ ╚═══╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ',
|
||||||
|
},
|
||||||
|
center = {
|
||||||
|
{ icon = ' ', desc = 'New file', action = 'enew', key = 'n' },
|
||||||
|
{ icon = ' ', desc = 'Find file', action = 'Telescope find_files', key = 'f' },
|
||||||
|
{ icon = ' ', desc = 'Explorer', action = 'Neotree toggle', key = 'e' },
|
||||||
|
{ icon = ' ', desc = 'Quit', action = 'qa', key = 'q' },
|
||||||
|
},
|
||||||
|
footer = { 'isenguard • ' .. os.date '%Y-%m-%d %H:%M' },
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
@ -12,6 +12,10 @@ return {
|
||||||
lazy = false,
|
lazy = false,
|
||||||
keys = {
|
keys = {
|
||||||
{ '\\', ':Neotree reveal<CR>', desc = 'NeoTree reveal', silent = true },
|
{ '\\', ':Neotree reveal<CR>', desc = 'NeoTree reveal', silent = true },
|
||||||
|
{ '<leader>e', '<cmd>Neotree toggle<CR>', desc = 'Toggle neo-tree' },
|
||||||
|
{ '<leader>o', '<cmd>Neotree reveal<CR>', desc = 'Reveal current file' },
|
||||||
|
{ '<leader>o', '<cmd>Neotree reveal<CR>', desc = 'Reveal current file' },
|
||||||
|
{ '<leader>gs', '<cmd>Neotree toggle show git_status<CR>', desc = 'Toggle git status panel' },
|
||||||
},
|
},
|
||||||
opts = {
|
opts = {
|
||||||
filesystem = {
|
filesystem = {
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,11 @@ return {
|
||||||
config = function()
|
config = function()
|
||||||
require('catppuccin').setup {
|
require('catppuccin').setup {
|
||||||
flavour = 'macchiato', -- latte, frappe, macchiato, mocha
|
flavour = 'macchiato', -- latte, frappe, macchiato, mocha
|
||||||
transparent_background = false,
|
transparent_background = true,
|
||||||
|
integrations = {
|
||||||
|
neotree = true,
|
||||||
|
telescope = true,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
vim.cmd.colorscheme 'catppuccin'
|
vim.cmd.colorscheme 'catppuccin'
|
||||||
end,
|
end,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue