diff --git a/nvim/lua/plugins/nav/bufremove.lua b/nvim/lua/plugins/nav/bufremove.lua deleted file mode 100755 index e3765c7..0000000 --- a/nvim/lua/plugins/nav/bufremove.lua +++ /dev/null @@ -1,12 +0,0 @@ -return { - "echasnovski/mini.bufremove", - config = function() - _G.MiniBufremove = require("mini.bufremove") - vim.keymap.set( - "n", - "", - ":lua MiniBufremove.delete()", - { silent = true, noremap = true, desc = "Remove buffer" } - ) - end, -} diff --git a/nvim/lua/plugins/style/colors.lua b/nvim/lua/plugins/style/colors.lua index a8f6d50..3635380 100755 --- a/nvim/lua/plugins/style/colors.lua +++ b/nvim/lua/plugins/style/colors.lua @@ -120,16 +120,12 @@ return { IncSearch = { fg = "palette.softblue", bg = "#1a6b51" }, -- 'incsearch' highlighting; also used for the text replaced with ":s///c" ModeMsg = { fg = "palette.fg3", style = "bold" }, -- 'showmode' message (e.g., "-- INSERT --") - NvimTreeRootFolder = { fg = "palette.lightblue", style = "bold" }, - NvimTreeFolderName = { fg = "palette.lightblue" }, - NvimTreeFolderIcon = { fg = "palette.lightblue" }, - NvimTreeOpenedFolderName = { fg = "palette.lightblue" }, - NvimTreeSymlinkFolderName = { fg = "palette.magenta" }, - - NvimTreeExecFile = { fg = "palette.red" }, - NvimTreeImageFile = { fg = "palette.white" }, - NvimTreeSpecialFile = { fg = "palette.yellow" }, - NvimTreeSymlink = { fg = "palette.magenta" }, + SnacksDashboardNormal = { fg = "palette.green" }, + SnacksDashboardDesc = { fg = "palette.softblue" }, + SnacksDashboardFile = { fg = "palette.softblue" }, + SnacksDashboardIcon = { fg = "palette.orange" }, + SnacksDashboardHeader = { fg = "palette.darkred" }, + SnacksDashboardTitle = { fg = "palette.turquoise" }, }, }, }) diff --git a/nvim/lua/plugins/style/noice.lua b/nvim/lua/plugins/style/noice.lua index 97b0c7e..837bc80 100755 --- a/nvim/lua/plugins/style/noice.lua +++ b/nvim/lua/plugins/style/noice.lua @@ -13,7 +13,7 @@ return { require("notify").setup({ max_width = 60, minimum_width = 30, - render = "wrapped-default", -- default, minimal, simple, compact, wrapped-compact or wrapped-default + render = "wrapped-compact", -- default, minimal, simple, compact, wrapped-compact or wrapped-default stages = "slide", -- fade_in_slide_out, fade, slide, static }) require("noice").setup({ diff --git a/nvim/lua/plugins/style/startup.lua b/nvim/lua/plugins/style/startup.lua deleted file mode 100755 index f765f5c..0000000 --- a/nvim/lua/plugins/style/startup.lua +++ /dev/null @@ -1,77 +0,0 @@ -return { - "startup-nvim/startup.nvim", - dependencies = { - "nvim-telescope/telescope.nvim", - "nvim-lua/plenary.nvim", - "nvim-telescope/telescope-file-browser.nvim", - }, - config = function() - require("startup").setup({ - title = { - type = "text", - align = "center", - content = { - [[]], - [[]], - [[]], - [[ ]], - [[ ██████ █████ █████ █████ ███ ]], - [[ ░░██████ ░░███ ░░███ ░░███ ░░░ ]], - [[ ░███░███ ░███ ██████ ██████ ░███ ░███ ████ █████████████ ]], - [[ ░███░░███░███ ███░░███ ███░░███ ░███ ░███ ░░███ ░░███░░███░░███ ]], - [[ ░███ ░░██████ ░███████ ░███ ░███ ░░███ ███ ░███ ░███ ░███ ░███ ]], - [[ ░███ ░░█████ ░███░░░ ░███ ░███ ░░░█████░ ░███ ░███ ░███ ░███ ]], - [[ █████ ░░█████░░██████ ░░██████ ░░███ █████ █████░███ █████ ]], - [[ ░░░░░ ░░░░░ ░░░░░░ ░░░░░░ ░░░ ░░░░░ ░░░░░ ░░░ ░░░░░ ]], - [[ ]], - }, - highlight = "String", - default_color = "#010155", - }, - - quotes = { - type = "text", - align = "center", - content = function() - local handle = io.popen("pwd") - if handle then - local cwd = handle:read("*l") - handle:close() - return { "Currently in " .. cwd } - else - return { "Error running command" } - end - end, - highlight = "String", - default_color = "#FFFFFF", - }, - - old = { - type = "oldfiles", - oldfiles_directory = true, - align = "center", - title = "Old files", - oldfiles_amount = 10, - highlight = "String", - default_color = "#FFFFFF", - content = "", - }, - - options = { - mapping_keys = false, - }, - - colors = { - background = "#000000", - folded_section = "#100000", - }, - - mappings = { - execute_command = "", - open_file = "", - }, - - parts = { "title", "quotes", "old" }, - }) - end, -} diff --git a/nvim/lua/plugins/util/indent-blankline.lua b/nvim/lua/plugins/util/indent-blankline.lua deleted file mode 100755 index f463671..0000000 --- a/nvim/lua/plugins/util/indent-blankline.lua +++ /dev/null @@ -1,9 +0,0 @@ -return { - -- indent lines - "lukas-reineke/indent-blankline.nvim", - opts = {}, - main = "ibl", - config = function() - require("ibl").setup() - end, -} diff --git a/nvim/lua/plugins/util/snacks.lua b/nvim/lua/plugins/util/snacks.lua new file mode 100644 index 0000000..9c2e36c --- /dev/null +++ b/nvim/lua/plugins/util/snacks.lua @@ -0,0 +1,92 @@ +return { + "folke/snacks.nvim", + priority = 1000, + lazy = false, + ---@type snacks.Config + opts = { + -- your configuration comes here + -- or leave it empty to use the default settings + -- refer to the configuration section below + animate = { enabled = true }, + bigfile = { enabled = true }, + bufdelete = { enabled = true }, + dashboard = { + enabled = true, + sections = { + { section = "header", hl = "SnacksDashboardHeader" }, + { + pane = 2, + section = "terminal", + cmd = "colorscript -e square", + height = 5, + padding = 1, + }, + { section = "keys", hl = "SnacksDashboardPrimary", gap = 1, padding = 1 }, + { + pane = 2, + icon = " ", + title = "Recent Files", + section = "recent_files", + indent = 2, + padding = 1, + hl = "SnacksDashboardPrimary", + }, + { pane = 2, icon = " ", title = "Projects", section = "projects", indent = 2, padding = 1 }, + { + pane = 2, + icon = " ", + title = "Git Status", + section = "terminal", + enabled = function() + return Snacks.git.get_root() ~= nil + end, + cmd = "git status --short --branch --renames", + height = 5, + padding = 1, + ttl = 5 * 60, + indent = 3, + }, + { section = "startup" }, + }, + }, + indent = { enabled = true }, + lazygit = { enabled = true }, + picker = { enabled = true }, + quickfile = { enabled = true }, + statuscolumn = { enabled = true }, + }, + keys = { + { + "gl", + function() + Snacks.lazygit() + end, + desc = "Open LazyGit", + mode = "n", + }, + { + "fcs", + function() + Snacks.picker.highlights({ pattern = "hl_group:^Snacks" }) + end, + desc = "Show Snacks highlights", + mode = "n", + }, + { + "fca", + function() + Snacks.picker.highlights() + end, + desc = "Show highlight groups", + mode = "n", + }, + { + "", + function() + Snacks.bufdelete() + end, + desc = "Close buffer", + mode = "n", + }, + }, +}