a vim plugin that displays stuff on an led matrix
Braille Typing Indicator Plugin for Neovim#
A simple plugin that displays a random Braille character in your statusline that changes every time you type.
Installation#
Using a plugin manager (recommended)#
packer.nvim#
use {
'taciturnaxolotl/daedalus',
config = function()
require('braille_indicator').setup()
end
}
lazy.nvim#
{
'taciturnaxolotl/daedalus',
config = function()
require('braille_indicator').setup()
end
}
Manual installation#
-
Clone this repository to your Neovim configuration directory:
git clone https://github.com/taciturnaxolotl/daedalus.git ~/.config/nvim/pack/plugins/start/daedalus -
Add the following to your
init.lua:require('braille_indicator').setup()
Configuration#
The plugin works with minimal configuration, but you can customize it:
require('braille_indicator').setup({
update_statusline = true, -- Automatically update the statusline
verbose = true, -- Show setup messages
})
Adding to your statusline#
If you're using a custom statusline setup, add the Braille indicator with:
%{v:lua.getBrailleIndicator()}
For example, with lualine:
require('lualine').setup({
sections = {
lualine_a = {
function()
return getBrailleIndicator()
end,
'mode'
},
-- other sections...
}
})