Closed thomasmerz closed 1 year ago
@thomasmerz If you're still interested, please show the code you are using to configure the plugin
I added these lines to my ~/.vimrc
function TouchBar()
TouchBarLabel F2 "desert"
colorscheme desert
endfunction
And have your repo cloned into ~/.vim/bundle/vim-it2-touchbar
- but my touchbar shows nothing different than usual and pressing F2 doesn't change my colorscheme.
Can you try moving the plugin folder to ~/.vim/pack/vendor/start/vim-it2-touchbar
?
Also, this plugin doesn't actually assign mappings to the keys. See :help map
for information on how to map the
I tried these symlinks in ~/.vim/pack/vendor/start:
vim-it2-touchbar ⇒ /Users/Thomas.Merz/dev/github.com/vim-bundle/vim-it2-touchbar vim-it2-touchbar ⇒ /Users/Thomas.Merz/dev/github.com/vim-bundle/vim-it2-touchbar/plugin
None changed anything, my touchbar looked the same 🤷🏼♂️ (all my other vim-plugins are symlinked in my ~/.vim/bundle directory and they work fine)
After adding key-mapping F2 did what it was expected to do. But still no text in touchbar.
Can you share a screenshot of your Touch Bar while in Vim (Cmd-Shift-6)?
Okay, I see what's causing the issue. This plugin takes advantage of iTerm2's feature to rename function keys, but you need to use iTerm2's "function keys" Touch Bar widget. This requires that:
You have the Function Key Touch Bar widget set up for iTerm2
https://github.com/eth-p/vim-it2-touchbar/assets/44714422/ec45de20-9894-4bec-b809-0b6f96134091
Touch Bar captured using sindresorhus/touch-bar-simulator
NOTE: You can also use the "Function Keys Popover" widget for this functionality, but you'll have to click it each time to open the function key view
Bingo! My bad… Somewhere back in time I didn't want touchbar so much fancy stuff doing. With your help it works now (changed F2 to show colorscheme koehler
instead of my example above)! Thank you ❤️
Too bad that I will "soon" get a new Macbook without touch bar… 😱
Glad I could help!
I have installed and setup your very interesting vim-plugin as desribed, but nothing happens 🤷🏻♂️
I'm using:
Can you please help and advice what to do? Thanks a lot.