tamton-aquib / staline.nvim

A modern lightweight statusline and bufferline plugin for neovim in lua.
MIT License
373 stars 16 forks source link

Can I change the mode icons for Visual-line and Visual-block? #52

Closed totordev closed 1 year ago

totordev commented 1 year ago

Hello, I'm trying to change the mode icons for Visual-line and block (because the icons used are no longer availiable and are replaced by what I think are arabic characters), but I can't find a way to do so. Is it possible to change these icons?

tamton-aquib commented 1 year ago

Heyyo @shebangcode, it is possible via the mode_icons option inside the setup as mentioned in the README.

Example:

require("staline").setup {
    mode_icons = {
        ["v"] = "some icon", -- visual mode
        ["V"] = "some icon", -- visual line mode
        [""] = "some icon" -- visual block mode
    },
    --- rest of the setup
}

Notice that visual-block needs the string literally as such. This was acheived by <C-v><C-v>. The first <C-v> for keystroke input and second <C-v> is the visual block keybind

totordev commented 1 year ago

Ok, thanks!

Edit: So the string that represents Visual-block is "<C-v><C-v>"?