-
Notifications
You must be signed in to change notification settings - Fork 462
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
Current char hex code in statusline #329
Comments
You don't need to just use '%B'. https://github.com/shadmansaleh/lualine.nvim#vims-statusline-items-as-lualine-component |
Note of this |
This comment was marked as outdated.
This comment was marked as outdated.
Yes, I've even modified the default settings after playing for a while. Found out you made a typo, Lua is |
What's your entire lualine config ? |
|
getcwd expects different arguments then what's given to lualines function components. Lualines function conponents get somthing like lualine_c = {function() return vim.fn.getcwd() end} or lualine_c = {'getcwd'} Try: require('lualine').setup({ sections = {
lualine_a = { {'mode', lower = false} },
lualine_b = { 'branch' },
lualine_c = { 'getcwd', {'filename', color = "PmenuSelBold"}, '%B' },
},
}) |
|
Is your cursor on a char ? It's working for me. |
Of course it is 🤷♂️ |
I just can't think of any reason for that not to work as I just ran that config and it worked :P Can you give a screenshot ? What does this command say ? :lua print(vim.inspect(require'lualine'.get_config())) |
You have |
Your fork didn't load, so I had to revert to original: |
Use this and try to reproduce the crash without any other plugins influence. And provide the minimal example with which you can reproduce the problem. |
I'm on Windows so I cannot use bash script. I've created an isolated installation by creating separate |
Do you have you lualine configuration file named |
Yes. Renaming it didn't help. |
What did you rename it to ? |
Sorry, renamed the wrong one. Now its working. Thanks for your efforts! 👍 |
Can you add current character under cursor hex as a component (like
0x2014
)? I would gladly write this myself but I dont yet understand how to do it in Lua.The text was updated successfully, but these errors were encountered: