From 5c28af23b4dd8d55d249c8994d7d35efa5930519 Mon Sep 17 00:00:00 2001 From: dnscio Date: Wed, 26 Feb 2025 10:47:56 +0000 Subject: [PATCH 1/4] Update home/modules/nvim/config/lua/plugins/which-key.lua --- home/modules/nvim/config/lua/plugins/which-key.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/home/modules/nvim/config/lua/plugins/which-key.lua b/home/modules/nvim/config/lua/plugins/which-key.lua index 434eaff..58ccba4 100644 --- a/home/modules/nvim/config/lua/plugins/which-key.lua +++ b/home/modules/nvim/config/lua/plugins/which-key.lua @@ -9,6 +9,7 @@ return { { "", "FzfLua git_files", desc = "Find git file", mode = "n" }, { "B", "FzfLua buffers", desc = "Opens buffers", mode = "n" }, { "b", group = "buffer", mode = "n" }, + { "bb", "FzfLua buffers", desc = "Switches buffers", mode = "n" }, { "b,", "BufferMovePrevious", desc = "Move buffer back", mode = "n" }, { "b.", @@ -95,7 +96,7 @@ return { }, { "oj", - ":vsplit ~/orgnzr/inbox.org | wincmd l", + ":vsplit ~/orgnzr/journal.org | wincmd l", desc = "Open journal to the side", mode = "n", }, From 49a5cd23d5702ebddca08ca5c51e923c0cfcc6f7 Mon Sep 17 00:00:00 2001 From: dnscio Date: Wed, 26 Feb 2025 10:48:23 +0000 Subject: [PATCH 2/4] Add home/modules/nvim/config/lua/plugins/harpoon.lua --- .../nvim/config/lua/plugins/harpoon.lua | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 home/modules/nvim/config/lua/plugins/harpoon.lua diff --git a/home/modules/nvim/config/lua/plugins/harpoon.lua b/home/modules/nvim/config/lua/plugins/harpoon.lua new file mode 100644 index 0000000..6e6c7e8 --- /dev/null +++ b/home/modules/nvim/config/lua/plugins/harpoon.lua @@ -0,0 +1,36 @@ +return { + "ThePrimeagen/harpoon", + branch = "harpoon2", + dependencies = { "nvim-lua/plenary.nvim" }, + config = function() + local harpoon = require("harpoon") + + harpoon:setup() + + -- Keybindings + vim.keymap.set("n", "hs", function() + harpoon.ui:toggle_quick_menu(harpoon:list()) + end) + vim.keymap.set("n", "ha", function() + harpoon:list():add() + end) + vim.keymap.set("n", "hy", function() + harpoon:list():select(1) + end) + vim.keymap.set("n", "hu", function() + harpoon:list():select(2) + end) + vim.keymap.set("n", "hi", function() + harpoon:list():select(3) + end) + vim.keymap.set("n", "ho", function() + harpoon:list():select(4) + end) + vim.keymap.set("n", "hp", function() + harpoon:list():prev() + end) + vim.keymap.set("n", "hn", function() + harpoon:list():next() + end) + end, +} From 8d529b9b04144de065b51875354aa85aad2e176e Mon Sep 17 00:00:00 2001 From: dnscio Date: Wed, 26 Feb 2025 10:53:20 +0000 Subject: [PATCH 3/4] Update home/modules/nvim/config/lua/plugins/lualine.lua --- home/modules/nvim/config/lua/plugins/lualine.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/home/modules/nvim/config/lua/plugins/lualine.lua b/home/modules/nvim/config/lua/plugins/lualine.lua index 9644717..6fb8b20 100644 --- a/home/modules/nvim/config/lua/plugins/lualine.lua +++ b/home/modules/nvim/config/lua/plugins/lualine.lua @@ -7,10 +7,18 @@ return { component_separators = { left = "|", right = "|" }, section_separators = { left = "", right = "" }, }, + winbar = { + lualine_a = {}, + lualine_b = {}, + lualine_c = {}, + lualine_x = { { "filename", path = 3, color = { fg = "darkgray", gui = "italic" } } }, + lualine_y = {}, + lualine_z = { "branch" }, + }, sections = { lualine_a = { "mode" }, lualine_b = {}, - lualine_c = { "branch", "diff", "diagnostics" }, + lualine_c = { "diff", "diagnostics" }, lualine_x = { "filetype", "encoding" }, lualine_y = {}, lualine_z = { "location" }, From bbbaddfc4853f81f451aac4a299c3fde21e1aa99 Mon Sep 17 00:00:00 2001 From: dnscio Date: Wed, 26 Feb 2025 11:09:13 +0000 Subject: [PATCH 4/4] Update home/modules/nvim/config/lua/plugins/lualine.lua --- .../nvim/config/lua/plugins/lualine.lua | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/home/modules/nvim/config/lua/plugins/lualine.lua b/home/modules/nvim/config/lua/plugins/lualine.lua index 6fb8b20..8d564f3 100644 --- a/home/modules/nvim/config/lua/plugins/lualine.lua +++ b/home/modules/nvim/config/lua/plugins/lualine.lua @@ -7,21 +7,14 @@ return { component_separators = { left = "|", right = "|" }, section_separators = { left = "", right = "" }, }, - winbar = { - lualine_a = {}, - lualine_b = {}, - lualine_c = {}, - lualine_x = { { "filename", path = 3, color = { fg = "darkgray", gui = "italic" } } }, - lualine_y = {}, - lualine_z = { "branch" }, - }, + winbar = {}, sections = { lualine_a = { "mode" }, - lualine_b = {}, - lualine_c = { "diff", "diagnostics" }, - lualine_x = { "filetype", "encoding" }, - lualine_y = {}, - lualine_z = { "location" }, + lualine_b = { { "filename", path = 3, color = { gui = "italic" } } }, + lualine_c = {}, + lualine_x = { "diagnostics", "diff" }, + lualine_y = { "branch" }, + lualine_z = { "location", "encoding" }, }, }, }