diff --git a/lua/custom/chadrc.lua b/lua/custom/chadrc.lua index ecfc215..0171f58 100644 --- a/lua/custom/chadrc.lua +++ b/lua/custom/chadrc.lua @@ -40,18 +40,6 @@ M.ui = { " ", " đŸ› ïž Sharp tools make good work đŸ–„ïž ", }, - - buttons = { - { " Find File", ";ff", "Telescope find_files" }, - { "󰈚 Recent Files", ";fo", "Telescope oldfiles" }, - { "󰈭 Find Word", ";fw", "Telescope live_grep" }, - { "ï€ź Bookmarks", ";fm", "Telescope marks" }, - { " Themes", ";th", "Telescope themes" }, - { " Mappings", "ch", "NvCheatsheet" }, - { " Git", "gg", "LazyGit" }, - { " Files", "", "NvimTreeToggle" }, - { "îȘ… Terminal", "", "ToggleTerm direction=float" }, - }, }, } @@ -60,4 +48,27 @@ M.plugins = "custom.plugins" -- check core.mappings for table structure M.mappings = require "custom.mappings" +local get_info = function() + local buf = { + { " Find File", ";ff", "Telescope find_files" }, + { "󰈚 Recent Files", ";fo", "Telescope oldfiles" }, + { "󰈭 Find Word", ";fw", "Telescope live_grep" }, + { "ï€ź Bookmarks", ";fm", "Telescope marks" }, + { " Theme: " .. M.ui.theme, ";th", "Telescope themes" }, + { + " toggle Theme: " .. M.ui.theme, + "th", + function() + require("base46").toggle_theme() + end, + }, + { " Mappings", "ch", "NvCheatsheet" }, + { " Git", "gg", "LazyGit" }, + { " Files", "", "NvimTreeToggle" }, + { "îȘ… Terminal", "", "ToggleTerm direction=float" }, + } + return buf +end +M.ui.nvdash.buttons = get_info() + return M diff --git a/lua/custom/mappings.lua b/lua/custom/mappings.lua index 5804515..fdbc0f9 100644 --- a/lua/custom/mappings.lua +++ b/lua/custom/mappings.lua @@ -171,6 +171,12 @@ M.lspconfig = { end, "Goto next", }, + ["cr"] = { + function() + require("nvchad.renamer").open() + end, + "LSP rename", + }, }, } @@ -407,6 +413,18 @@ M.ui = { end, "toggle inlay hints", }, + ["th"] = { + function() + require("base46").toggle_theme() + end, + "toggle theme", + }, + ["te"] = { + function() + require("base46").toggle_transparency() + end, + "toggle transparency", + }, -- open windows ['"'] = { "vsplit", "open a new window to the side" }, diff --git a/lua/custom/plugins.lua b/lua/custom/plugins.lua index 318d3c1..2b8222f 100644 --- a/lua/custom/plugins.lua +++ b/lua/custom/plugins.lua @@ -1,21 +1,4 @@ local overrides = require "custom.configs.overrides" -local utils = require "core.utils" -local function get_header() - -- see https://github.com/MaximilianLloyd/ascii.nvim - return { - -- The following is a customized version! - [[ ]], - [[ ]], - [[ î‚ș█ ████████ █████ î‚ș█î‚ș███î‚ș███ î‚ș████ ]], - [[ î‚ș███ ██████ █████ î‚ș█î‚ș███î‚ș█████ î‚ș██████ ]], - [[ î‚ș█████ ████î‚ș████████î‚ș████████î‚ș██ ████ ███████î‚ș████████ ]], - [[ î‚ș██ ██ ██î‚ș███ î‚ș█████████████ ████ ████████████████ ]], - [[ î‚ș████ █████î‚ș████████î‚ș██ █████████ ████ █████ ██████ ████ ]], - [[ î‚ș██████ ███î‚ș███ î‚ș███ î‚ș█████████ ████ █████ █████ ████ ]], - [[ î‚ș████████ █î‚ș██████████████████ ████ ████ █████ ████ ████ ]], - [[ ]], - } -end ---@type NvPluginSpec[] local plugins = { @@ -363,10 +346,6 @@ local plugins = { local dash = require "alpha.themes.dashboard" require("alpha").setup(dash.config) end, - - opts = { - header = get_header(), - }, }, { "stevearc/dressing.nvim",