Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

meuter/hex-static.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Archived

This project is archived: hex-static.nvim joined forces with the nibbler plugin.

hex-static.nvim

This plugin simply exposes one command :HexStringToCArray that does exactly what you think it does: it turns a hexstring into a C-style array of bytes. For instance it will turn:

01AA44684200

into

0x01, 0xAA, 0x44, 0x68, 0x42, 0x00

In normal mode, it will try and convert the word under the cursor. In visual mode it will try to convert the selected text. If convertion fail, the command will fail and display an error message in the :messages.

Installation

For Lazy, simply add this plugin spec to your config:

{
    "meuter/hex-static.nvim",
    config = function()
        require("hex-static").setup()
    end
}

or even shorter:

{
    "meuter/hex-static.nvim",
    config = true
}

About

Converts hexstring to C style array

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages