From 7f7608bd4662dd90522455691796eaf370c95952 Mon Sep 17 00:00:00 2001 From: Jonas Hahn Date: Sat, 30 Aug 2025 21:37:10 +0200 Subject: [PATCH] small modifications and remove dashboard --- lazy-lock.json | 1 + lua/dashboard.lua | 41 --------------------------------------- lua/plugins/luasnip.lua | 1 + lua/plugins/nvimtree.lua | 4 ++-- lua/plugins/searching.lua | 4 ++-- lua/plugins/ui.lua | 8 -------- 6 files changed, 6 insertions(+), 53 deletions(-) delete mode 100644 lua/dashboard.lua diff --git a/lazy-lock.json b/lazy-lock.json index 23fb360..e91a7b0 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -27,5 +27,6 @@ "telekasten.nvim": { "branch": "main", "commit": "b3ac2b07f2df504bb80112fec349714086a80037" }, "telescope.nvim": { "branch": "master", "commit": "b4da76be54691e854d3e0e02c36b0245f945c2c7" }, "toggleterm.nvim": { "branch": "main", "commit": "9a88eae817ef395952e08650b3283726786fb5fb" }, + "typstar": { "branch": "main", "commit": "67a76bec16af7c726a77b9c3a15ef37b34967a9c" }, "which-key.nvim": { "branch": "main", "commit": "370ec46f710e058c9c1646273e6b225acf47cbed" } } diff --git a/lua/dashboard.lua b/lua/dashboard.lua deleted file mode 100644 index 750efbd..0000000 --- a/lua/dashboard.lua +++ /dev/null @@ -1,41 +0,0 @@ -local alpha = require("alpha") -local dashboard = require("alpha.themes.dashboard") - -dashboard.section.header.val = { - [[░█████╗░░██████╗░█████╗░██╗░░░██╗██╗██╗]], - [[██╔══██╗██╔════╝██╔══██╗╚██╗░██╔╝██║██║]], - [[███████║╚█████╗░██║░░╚═╝░╚████╔╝░██║██║]], - [[██╔══██║░╚═══██╗██║░░██╗░░╚██╔╝░░██║██║]], - [[██║░░██║██████╔╝╚█████╔╝░░░██║░░░██║██║]], - [[╚═╝░░╚═╝╚═════╝░░╚════╝░░░░╚═╝░░░╚═╝╚═╝]], -} - -dashboard.section.buttons.val = { - dashboard.button("e", "New File", ":ene startinsert "), - dashboard.button("r", "Recent Files", ":Telescope oldfiles"), - dashboard.button("c", "Config", ":e $MYVIMRC"), - dashboard.button("q", "Quit", ":qa"), -} - -dashboard.section.footer.val = "Welcome to Neovim! Enjoy!" - -dashboard.section.header.opts.hl = "include" -dashboard.section.buttons.opts.hl = "keyword" -dashboard.section.footer.opts.hl = "type" - -local screen_height = vim.fn.winheight(0) -local content_height = - #dashboard.section.header.val + - #dashboard.section.buttons.val + - #dashboard.section.footer.val - -dashboard.opts.layout = { - { type = "padding", val = math.floor((screen_height - content_height) / 2) }, - dashboard.section.header, - { type = "padding", val = 2 }, - dashboard.section.buttons, - { type = "padding", val = 1 }, - dashboard.section.footer, -} - -alpha.setup(dashboard.opts) diff --git a/lua/plugins/luasnip.lua b/lua/plugins/luasnip.lua index d61c3f5..dfa1c48 100644 --- a/lua/plugins/luasnip.lua +++ b/lua/plugins/luasnip.lua @@ -10,6 +10,7 @@ return { config = function() local ls = require("luasnip") + -- Load snippets require("luasnip.loaders.from_vscode").lazy_load() require("luasnip.loaders.from_lua").lazy_load({ paths = "~/.config/nvim/snippets" }) diff --git a/lua/plugins/nvimtree.lua b/lua/plugins/nvimtree.lua index b9a0225..46dbac4 100644 --- a/lua/plugins/nvimtree.lua +++ b/lua/plugins/nvimtree.lua @@ -31,8 +31,8 @@ return { }, icons = { show = { - file = false, - folder = false, + file = true, + folder = true, folder_arrow = true, git = false, modified = false, diff --git a/lua/plugins/searching.lua b/lua/plugins/searching.lua index ebb887a..31ede9e 100644 --- a/lua/plugins/searching.lua +++ b/lua/plugins/searching.lua @@ -54,9 +54,9 @@ return { function() require('telescope.builtin').find_files({ hidden = true, - no_ignore = true, -- Also show files in gitignore + no_ignore = true, follow = true, - disable_devicons = true, + disable_devicons = false, prompt_title = "Find Files", find_command = { "rg", "--files", diff --git a/lua/plugins/ui.lua b/lua/plugins/ui.lua index ead8d75..020c36f 100644 --- a/lua/plugins/ui.lua +++ b/lua/plugins/ui.lua @@ -60,12 +60,4 @@ return { vim.keymap.set("n", "bd", ":BufferDelete") end }, - - { - "goolord/alpha-nvim", - dependencies = { "nvim-tree/nvim-web-devicons" }, - config = function() - require("dashboard") - end - } }