mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-12-13 11:42:57 +01:00
add nvim-harpoon
This commit is contained in:
parent
11f365917a
commit
847c5a9634
3 changed files with 17 additions and 2 deletions
7
mzte-nv/conf/lua/pluginconf/nvim_harpoon.lua
Normal file
7
mzte-nv/conf/lua/pluginconf/nvim_harpoon.lua
Normal file
|
@ -0,0 +1,7 @@
|
|||
local map = vim.api.nvim_set_keymap
|
||||
|
||||
require("harpoon").setup {}
|
||||
|
||||
map("n", "ma", [[<cmd>lua require("harpoon.mark").toggle_file()<cr>]], { silent = true })
|
||||
map("n", "mn", [[<cmd>lua require("harpoon.ui").nav_next()<cr>]], { silent = true })
|
||||
map("n", "mp", [[<cmd>lua require("harpoon.ui").nav_prev()<cr>]], { silent = true })
|
|
@ -1,6 +1,7 @@
|
|||
local telescope = require "telescope"
|
||||
local map = vim.api.nvim_set_keymap
|
||||
|
||||
require("telescope").setup {
|
||||
telescope.setup {
|
||||
defaults = {
|
||||
vimgrep_arguments = {
|
||||
"rg",
|
||||
|
@ -27,8 +28,10 @@ require("telescope").setup {
|
|||
},
|
||||
}
|
||||
|
||||
require("telescope").load_extension "ui-select"
|
||||
telescope.load_extension "ui-select"
|
||||
telescope.load_extension "harpoon"
|
||||
|
||||
map("n", "ff", "<cmd>Telescope find_files<cr>", { silent = true })
|
||||
map("n", "fg", "<cmd>Telescope live_grep<cr>", { silent = true })
|
||||
map("n", "gs", "<cmd>Telescope lsp_dynamic_workspace_symbols<cr>", { silent = true })
|
||||
map("n", "gm", "<cmd>Telescope harpoon marks<cr>", { silent = true })
|
||||
|
|
|
@ -178,6 +178,11 @@ require("packer").startup(function(use)
|
|||
requires = "rcarriga/nvim-dap-ui",
|
||||
}
|
||||
|
||||
use {
|
||||
"ThePrimeagen/harpoon",
|
||||
config = pconf "nvim_harpoon",
|
||||
}
|
||||
|
||||
cmp_plugins(use)
|
||||
end)
|
||||
|
||||
|
|
Loading…
Reference in a new issue