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, +} diff --git a/home/modules/nvim/config/lua/plugins/lualine.lua b/home/modules/nvim/config/lua/plugins/lualine.lua index 9644717..8d564f3 100644 --- a/home/modules/nvim/config/lua/plugins/lualine.lua +++ b/home/modules/nvim/config/lua/plugins/lualine.lua @@ -7,13 +7,14 @@ return { component_separators = { left = "|", right = "|" }, section_separators = { left = "", right = "" }, }, + winbar = {}, sections = { lualine_a = { "mode" }, - lualine_b = {}, - lualine_c = { "branch", "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" }, }, }, } 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", },