From f61ee4f4df2f0bf8ed1f57873a4d1d076fa6ada0 Mon Sep 17 00:00:00 2001 From: graned Date: Sun, 5 Oct 2025 12:22:08 +0200 Subject: [PATCH] chore: add better interface --- init.lua | 2 +- lua/kickstart/plugins/dashboard.lua | 32 +++++++++++++++++++++++++++++ lua/kickstart/plugins/neo-tree.lua | 4 ++++ lua/kickstart/plugins/theme.lua | 6 +++++- 4 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 lua/kickstart/plugins/dashboard.lua diff --git a/init.lua b/init.lua index d3e4886c..698e0e65 100644 --- a/init.lua +++ b/init.lua @@ -993,7 +993,7 @@ require('lazy').setup({ require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps require 'kickstart.plugins.devstack', 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` -- This is the easiest way to modularize your config. -- diff --git a/lua/kickstart/plugins/dashboard.lua b/lua/kickstart/plugins/dashboard.lua new file mode 100644 index 00000000..43f64c8f --- /dev/null +++ b/lua/kickstart/plugins/dashboard.lua @@ -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, + }, +} diff --git a/lua/kickstart/plugins/neo-tree.lua b/lua/kickstart/plugins/neo-tree.lua index 4fe9d9ec..c48f2aa8 100644 --- a/lua/kickstart/plugins/neo-tree.lua +++ b/lua/kickstart/plugins/neo-tree.lua @@ -12,6 +12,10 @@ return { lazy = false, keys = { { '\\', ':Neotree reveal', desc = 'NeoTree reveal', silent = true }, + { 'e', 'Neotree toggle', desc = 'Toggle neo-tree' }, + { 'o', 'Neotree reveal', desc = 'Reveal current file' }, + { 'o', 'Neotree reveal', desc = 'Reveal current file' }, + { 'gs', 'Neotree toggle show git_status', desc = 'Toggle git status panel' }, }, opts = { filesystem = { diff --git a/lua/kickstart/plugins/theme.lua b/lua/kickstart/plugins/theme.lua index b64de98f..f3a35c67 100644 --- a/lua/kickstart/plugins/theme.lua +++ b/lua/kickstart/plugins/theme.lua @@ -7,7 +7,11 @@ return { config = function() require('catppuccin').setup { flavour = 'macchiato', -- latte, frappe, macchiato, mocha - transparent_background = false, + transparent_background = true, + integrations = { + neotree = true, + telescope = true, + }, } vim.cmd.colorscheme 'catppuccin' end,