From 151f1a356e392919c2cd0ec69110784e0f67b17a Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Thu, 4 Jul 2024 19:23:32 +0200 Subject: [PATCH] better dash --- lua/custom/maps/init.lua | 2 ++ lua/custom/plugins/telescope.lua | 4 ++-- lua/custom/plugins/themes.lua | 4 ++++ lua/custom/plugins/ui.lua | 15 +++++++++++++-- 4 files changed, 21 insertions(+), 4 deletions(-) diff --git a/lua/custom/maps/init.lua b/lua/custom/maps/init.lua index 6f0ba26..4789429 100644 --- a/lua/custom/maps/init.lua +++ b/lua/custom/maps/init.lua @@ -51,6 +51,8 @@ vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = 'Go to next [D]iagn vim.keymap.set({ 'n', 'v' }, 'qqq', 'bd!', { desc = '[Q]uit the current window' }) vim.keymap.set({ 'n', 'v' }, '', 'bw!', { desc = '[Q]uit the current window' }) +vim.keymap.set({ 'n' }, '#', "'", { desc = '[Q]uit the current window' }) + -------------------------------------------------------------------------------- -- Workspace, buffer and window manipulation -------------------------------------------------------------------------------- diff --git a/lua/custom/plugins/telescope.lua b/lua/custom/plugins/telescope.lua index 42a94c9..8a1d724 100644 --- a/lua/custom/plugins/telescope.lua +++ b/lua/custom/plugins/telescope.lua @@ -83,12 +83,12 @@ return { vim.keymap.set('n', 'fh', builtin.help_tags, { desc = '[F]ind [H]elp' }) vim.keymap.set('n', 'fk', builtin.keymaps, { desc = '[F]ind [K]eymaps' }) vim.keymap.set('n', 'ff', builtin.find_files, { desc = '[F]ind [F]iles' }) - vim.keymap.set('n', 'ft', builtin.builtin, { desc = '[F]ind [T]elescope' }) + vim.keymap.set('n', 'fe', builtin.builtin, { desc = '[F]ind t[E]lescope' }) vim.keymap.set('n', 'fw', builtin.live_grep, { desc = '[F]ind a [W]ord interactively' }) vim.keymap.set('n', 'fcw', builtin.grep_string, { desc = '[F]ind [C]urrent [W]ord' }) vim.keymap.set('n', 'fd', builtin.diagnostics, { desc = '[F]ind [D]iagnostics' }) vim.keymap.set('n', 'fr', builtin.resume, { desc = '[F]ind [R]esume' }) - vim.keymap.set('n', 'fof.', builtin.oldfiles, { desc = '[F]ind [O]ld Files ("." for repeat)' }) + vim.keymap.set('n', 'fo', builtin.oldfiles, { desc = '[F]ind [O]ld Files ("." for repeat)' }) vim.keymap.set('n', '', builtin.buffers, { desc = '[ ] Find existing buffers' }) vim.keymap.set('n', 'fb', builtin.buffers, { desc = '[F]ind existing [B]uffers' }) vim.keymap.set('n', 'fm', builtin.marks, { desc = '[F]ind book[M]arks' }) diff --git a/lua/custom/plugins/themes.lua b/lua/custom/plugins/themes.lua index 48b7bec..b97a722 100644 --- a/lua/custom/plugins/themes.lua +++ b/lua/custom/plugins/themes.lua @@ -2,6 +2,10 @@ return { { 'zaldih/themery.nvim', priority = 1000, -- Make sure to load this before all the other start plugins. + cmd = 'Themery', + keys = { + { ';ft', ' Themery ', desc = '[F]ind [T]heme' }, + }, init = function() require 'settings.theme' end, diff --git a/lua/custom/plugins/ui.lua b/lua/custom/plugins/ui.lua index d4c84f0..c2f0dec 100644 --- a/lua/custom/plugins/ui.lua +++ b/lua/custom/plugins/ui.lua @@ -638,10 +638,21 @@ return { '~/Documents/novel', }, -- Format to display date in - date_format = nil, + date_format = '%Y-%m-%d %H:%M:%S', -- Sections to add at bottom, these can be string references to -- functions in sections.lua, custom strings, or custom functions - footer = {}, + footer = { + [[  Find File ;ff ]], + [[ 󰈚 Recent Files ;fo ]], + [[  Find Word ;fw ]], + [[  Bookmarks ;fm ]], + [[  Theme ;ft ]], + [[  Git ␣ft ]], + [[  Change Directory ;cd ]], + [[  Files F5 ]], + [[  Terminal F12 ]], + }, + -- Gets called after directory is changed and is provided with the -- directory path as an argument on_load = function(path)