diff --git a/config/nvim/init.lua b/config/nvim/init.lua index 46f6912..bbd9d5e 100644 --- a/config/nvim/init.lua +++ b/config/nvim/init.lua @@ -66,12 +66,12 @@ require('packer').startup(function(use) -- Fuzzy Finder (files, lsp, etc) use { 'nvim-telescope/telescope.nvim', - branch = '0.1.x', requires = { 'nvim-lua/plenary.nvim' } } + branch = '0.1.x', requires = { 'nvim-lua/plenary.nvim' } } -- Fuzzy Finder Algorithm which requires local dependencies to be built. -- Only load if `make` is available use { 'nvim-telescope/telescope-fzf-native.nvim', - run = 'make', cond = vim.fn.executable 'make' == 1 } + run = 'make', cond = vim.fn.executable 'make' == 1 } -- Add custom plugins to packer from -- ~/.config/nvim/lua/custom/plugins.lua @@ -392,6 +392,9 @@ ks('n', 'sw', tl.grep_string, { desc = '[S]earch current [W]ord' }) ks('n', 'sg', tl.live_grep, { desc = '[S]earch by [G]rep' }) ks('n', 'sd', tl.diagnostics, { desc = '[S]earch [D]iagnostics' }) +-- Add harpoon to telescope +require("telescope").load_extension('harpoon') + -- [[ Configure Treesitter ]] -- See `:help nvim-treesitter` require('nvim-treesitter.configs').setup { diff --git a/config/nvim/lua/custom/plugins.lua b/config/nvim/lua/custom/plugins.lua index 56b680a..9429207 100644 --- a/config/nvim/lua/custom/plugins.lua +++ b/config/nvim/lua/custom/plugins.lua @@ -59,6 +59,13 @@ return function(use) } } + -- harpoon, by ThePrimeagen + -- https://github.com/ThePrimeagen/harpoon + use { + "ThePrimeagen/harpoon", + requires = { { "nvim-lua/plenary.nvim" } } + } + -- An asynchronous linter plugin for Neovim complementary to -- the built-in Language Server Protocol support. -- https://github.com/mfussenegger/nvim-lint diff --git a/scripts/shared.sh b/scripts/shared.sh index 1f40362..3cabf26 100644 --- a/scripts/shared.sh +++ b/scripts/shared.sh @@ -86,3 +86,4 @@ function menu_item() { LINE=$(printf '%-15s %-30s\n' "$1" "$2") echo -e "$(__log_indent)$(__log_marker) $LINE" } +