Git Product home page Git Product logo

vim-mode-leds.nvim's Introduction

vim-mode-leds

Usage

Packer

Add the plugin to packer:

use { arrowtip/vim-mode-leds.nvim }

And configure it (both path_to_leds and colors are optional):

require("vim-mode-leds").setup({ 
    -- usually path will be /dev/ttyACM0
    path_to_leds = "path/to/led/device/file",
    -- colors are 8bit hexadecimal WRGB values
    colors = {
        normal = "\\x03" -- blue
        visual = "\\x3c" -- yellow
        select = "\\x0c" -- green
        insert = "\\xff" -- white
        cmdline = "\\x30" -- red
        ex = "\\x34" -- orange
        terminal = "\\x33" -- purple
        idle = "\\x00" -- off
    }})

Troubleshooting:

Check the permission of the device. Your device should be writable by the user. This is an easy fix:

usermod -a -G uucp $USER
chmod g+w /dev/ttyACM0

vim-mode-leds.nvim's People

Contributors

arrowtip avatar kistenklaus avatar

Watchers

 avatar

Forkers

kistenklaus

vim-mode-leds.nvim's Issues

fix error when ModeStore does not exist

Error detected while processing FocusGained Autocommands for "*":
Error executing lua callback: .../vim-mode-leds.nvim/lua/vim-mode-leds/mode-detection.lua:85: Key not found: VimModeLeds_ModeStore
stack traceback:
[C]: in function 'nvim_win_get_var'
.../vim-mode-leds.nvim/lua/vim-mode-leds/mode-detection.lua:85: in function <.../vim-mode-leds.nvim/lua/vim-mode-leds/mode-detection.lua:84>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.