-
Notifications
You must be signed in to change notification settings - Fork 22
added harpoon integration #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
added harpoon integration #15
Conversation
|
Harpooner. TIL!
" ~/.ideavimrc
" To update lazy-idea:
" curl -Lo ~/.lazy-idea.vim https://raw.githubusercontent.com/cufarvid/lazy-idea/refs/heads/main/.ideavimrc
source ~/.lazy-idea.vim
nmap <leader>1 <action>(HarpoonerOpenFile0)
nmap <leader>2 <action>(HarpoonerOpenFile1)
" ... |
|
Ya you are right but I am not author the override fun applicationStarted() {
// other things...
HarpoonService.getInstance().setVariable("Harpooner", true)
}and then in if exists('g:Harpooner')
" Activate Harpooner keymaps
nmap <leader>1 <action>(HarpoonerOpenFile0)
"...
endifI will check with |
|
Thanks for the PR! This is a great addition. I'm thinking about breaking the config into smaller files (similar to intellimacs), which would make optional plugins much cleaner to manage - users could just include the plugins they want. @mikeslattery Any thoughts on this? |
I've had some ideas. All require
" ~/.ideavimrc
set g:lazy_harpoon = 1
set g:lazy_copilot = 1
source ~/.lazy-idea.vim" ~/.lazy-idea.vim
if exists('g:lazy_harpoon') && g:lazy_harpoon
...
endif
We could convert this repo to a neovim plugin, and when you first launch Neovim it adds something like this to " lazy-idea start. This block was generated by the Neovim lazy-idea plugin. Do not edit.
set g:neovim_data='~/.local/share/nvim'
set g:neovim_config='~/.config/nvim'
" enabled lazyvim extras
source ~/.local/share/nvim/lazy/lazy-idea/idea/lazy-idea.vim
source ~/.local/share/nvim/lazy/lazy-idea/idea/harpoon.vim
source ~/.local/share/nvim/lazy/lazy-idea/idea/copilot.vim
" lazy-idea endTo update, run |
|
An update on this, the author of Harpooner has added the requested requirement. here erotourtes/Harpooner#28 (comment). He has provided a build. Can we test it somehow @cufarvid @mikeslattery? |
|
@anuragkanwar It looks like this is now available in Harpooner. Would you mind updating your PR to use the new approach? |
Added keymaps for Harpoon integration based on the current keymaps available in LazyVim.