how to use the on_click
properly (README isn't clear enough)
#1259
daUnknownCoder
started this conversation in
Configuration
Replies: 2 comments
-
It's been a hot minute since I have dicked with my lualine config. I might poke this tonight and see if I can get you some answers :) I did get onclick implemented on the aforementioned plugin so it shouldn't be too hard for me to puzzle through how to use the updated stuff. I didn't know they added all that new stuff, that's pretty awesome :) |
Beta Was this translation helpful? Give feedback.
0 replies
-
This should work: on_click = function(_, button, _)
if button == "l" then
vim.cmd(":LspInfo")
end
if button == "r" then
vim.cmd(":LspRestart")
end
end, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hey devs, nice job on adding the
on_click
, its awesome but it isnt documented properly (a few examples in the wiki will be good enough)I figured it out *(half part) thanks to @miversen33 in his reddit comment: Bro's Comment
I wanted to ask about the main thing thats left: the mouse button thing (i want different funcs for left press and right press)
What i have done till now:
i want something like:
which is not working/im dumb enough to not understand this
Beta Was this translation helpful? Give feedback.
All reactions