zdcthomas / ned

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hi!!

Running locally

Neovim looks for a directory called lua with a file called <library-name>.[so|dylib] so when you build, run

mkdir lua
cargo build
cp ./target/debug/libned.so ./lua/ned.so

Then, inside of neovim, set the runtime path to include ned, by running vim.opt.runtimepath:append("<path to ned on your system")

You can run this either in EX mode (by hitting : while inside neovim, but remember to prepend lua to the above command) OR In any lua file you already load when neovim starts.

Then, inside your running Neovim instance, you can run require("ned").

Pro Tip!

You can run AND print lua code from EX mode by prefixing with := e.g

:=require("ned")

Lazy

You don't need to use Lazy as a package manager to use these steps above, I just use it here as an automatic to include a lua file when I'm in this directory

About

License:MIT License


Languages

Language:Rust 84.8%Language:Nix 14.6%Language:Lua 0.5%Language:Shell 0.1%