Skip to content
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

Visual Block Mode not working #69

Closed
tomatophu opened this issue May 18, 2024 · 3 comments
Closed

Visual Block Mode not working #69

tomatophu opened this issue May 18, 2024 · 3 comments

Comments

@tomatophu
Copy link

tomatophu commented May 18, 2024

How do I configure the symbol and color for visual block mode? Whenever I enter the mode, staline uses the default colors and symbols. I looked into staline/config.lua, and tried finding the option for visual block mode, but each one I tried (V and ['']) did not work.

Here is my config:

require('staline').setup({
   defaults = {
      fg = '#292c3c',
      true_colors = true,
      inactive_color = '#babbf1',
      line_column = ' [%l/%L] :%c',
   },

   mode_colors = {
      n = '#8caaee',
      i = '#a6d189',
      ic = '#a6d189',
      c = '#ef9f76',
      v = '#ca9ee6',
   },

   mode_icons = {
      n = 'NORMAL 󰋜 ',
      i = 'INSERT 󰏫 ',
      ic = 'INSERT 󰏫 ',
      c = 'COMMAND  ',
      v = 'VISUAL 󰈈 ',
      V = 'eeeee', -- both of these are not working
      [''] = 'eeee'
   },

   lsp_symbols = {
      Error = '',
      Warn = '',
      Hint = '󰌶 ',
      Info = '󰋽 ',
   },

   sections = {
      left = { '- ', '-mode', 'left_sep', 'branch' },
      mid  = { 'file_name', 'lsp' },
      right = { 'cool_symbol', 'right_sep', '-line_column', '- ' },
   },

})

require('stabline').setup({
   inactive_fg = '#babbf1',
})

Here is an annotated screenshot:

CleanShot 2024-05-18 at 00 42 01@2x

@tomatophu
Copy link
Author

This is the first ever issue I have ever filed on Github. Sorry if it is bad or unnecessary.

@tamton-aquib
Copy link
Owner

Heyyo @matofu,

The visual block key in the table can be a bit confusing at first. Basically:
"v" is visual mode
"V" is visual line mode
"�" is visual block mode

Visual block is just a unicode character. When inserted into vim, it will show something like ^V.

Try copy pasting this into the visual blocks place:

      [""] = 'eeee'

@tomatophu
Copy link
Author

tomatophu commented May 18, 2024

Thank you! I was so confused. Sorry for the trouble.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants