GithubHelp home page GithubHelp logo

nvim-soil's Introduction

nvim-soil

Soil for a plant (UML)

nvim-soil is a minimal plugin written in Lua for Plant UML.

Caveats

  • Java and sxiv are required to be installed in order to use this plugin.
  • plantuml is optional to be installed or used in jar format.
  • Recommended for Plant UML syntax highlighting nvim-whisky colorscheme
  • This plugin has been developed on and for Linux following open source philosophy.

Installation

Packer

use 'javiorfo/nvim-soil'

-- Optional for puml syntax highlighting:
use 'javiorfo/nvim-nyctophilia'

Lazy

{ 'javiorfo/nvim-soil', lazy = true, ft = "plantuml" }

-- Optional for puml syntax highlighting:
{ 'javiorfo/nvim-nyctophilia' }

Configuration

This is OPTIONAL

  • If plantuml is installed you don't need any extra set up. But if wanted to use plantuml jar version you can set it up.
  • The default image format is PNG.
  • The default Plant UML darkmode is set to false.
  • Optional configuration in init.vim or init.lua:
require'soil'.setup{ 
    -- If you want to use Plant UML jar version instead of the install version
    puml_jar = "/path/to/plantuml.jar",
    
    -- If you want to customize the image showed when running this plugin
    image = {
        darkmode = false, -- Enable or disable darkmode 
        format = "png", -- Choose between png or svg
    }
}

Usage

  • Open any yourfile.plantuml, yourfile.pu or yourfile.puml which you want to process and use :Soil Neovim command line to generate and open yourfile.png with graphical output. Press q to quit the image viewer.
  • Everytime you update a Plant UML file and run :Soil, you'll get an updated image.
  • The generated image is saved in the same location that your Plant UML file.

Screenshots

Simple use

soil

NOTE: The colorscheme nox from nvim-nyctophilia is used in this image.

nvim-soil's People

Contributors

blz777 avatar javiorfo avatar

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.