diff --git a/lua/plugins/harpoon.lua b/lua/plugins/harpoon.lua index 7103794..d016039 100644 --- a/lua/plugins/harpoon.lua +++ b/lua/plugins/harpoon.lua @@ -4,36 +4,36 @@ local themes = require('telescope.themes') -- helper function to use telescope on harpoon list. -- change get_ivy to other themes if wanted local function toggle_telescope(harpoon_files) - local file_paths = {} - for _, item in ipairs(harpoon_files.items) do - table.insert(file_paths, item.value) - end - local opts = themes.get_ivy({ - promt_title = "Working List" - }) - - require("telescope.pickers").new(opts, { - finder = require("telescope.finders").new_table({ - results = file_paths, - }), - previewer = conf.file_previewer(opts), - sorter = conf.generic_sorter(opts), - }):find() + local file_paths = {} + for _, item in ipairs(harpoon_files.items) do + table.insert(file_paths, item.value) + end + local opts = themes.get_ivy({ + promt_title = "Working List" + }) + require("telescope.pickers").new(opts, { + finder = require("telescope.finders").new_table({ + results = file_paths, + }), + previewer = conf.file_previewer(opts), + sorter = conf.generic_sorter(opts), + }):find() end return { - "ThePrimeagen/harpoon", - branch = "harpoon2", - dependencies = { - "nvim-lua/plenary.nvim" - }, - config = function() - local harpoon = require('harpoon') - vim.keymap.set("n", "a", function() harpoon:list():add() end) - vim.keymap.set("n", "", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end) - vim.keymap.set("n", "fl", function() toggle_telescope(harpoon:list()) end, { desc = "Open harpoon window"}) - vim.keymap.set("n", "", function() harpoon:list():prev() end) - vim.keymap.set("n", "", function() harpoon:list():next() end) - end + "ThePrimeagen/harpoon", + branch = "harpoon2", + dependencies = { + "nvim-lua/plenary.nvim" + }, + config = function() + local harpoon = require('harpoon') + vim.keymap.set("n", "a", function() harpoon:list():add() end) + vim.keymap.set("n", "", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end) + vim.keymap.set("n", "fl", function() toggle_telescope(harpoon:list()) end, + { desc = "Open harpoon window" }) + vim.keymap.set("n", "", function() harpoon:list():prev() end) + vim.keymap.set("n", "", function() harpoon:list():next() end) + end } diff --git a/lua/plugins/one-liners.lua b/lua/plugins/one-liners.lua index 9b6e8ea..17ffc91 100644 --- a/lua/plugins/one-liners.lua +++ b/lua/plugins/one-liners.lua @@ -15,4 +15,10 @@ return { { -- Show historical versions of the file locally 'mbbill/undotree', }, + { -- Show CSS Colors + 'brenoprata10/nvim-highlight-colors', + config = function() + require('nvim-highlight-colors').setup({}) + end + }, }