GithubHelp home page GithubHelp logo

plantuml.nvim's Introduction

$ echo "Hello World" | asciify
  _    _      _ _                            _     _ 
 | |  | |    | | |                          | |   | |
 | |__| | ___| | | ___   __      _____  _ __| | __| |
 |  __  |/ _ \ | |/ _ \  \ \ /\ / / _ \| '__| |/ _` |
 | |  | |  __/ | | (_) |  \ V  V / (_) | |  | | (_| |
 |_|  |_|\___|_|_|\___/    \_/\_/ \___/|_|  |_|\__,_|
                                                     
$ cat /etc/profile

NAME=Andreas Palm
EMAIL=me[a]andreaspalm.se
WORKPLACE=Fabled AB
PROFESSION=System Developer
PROFESSION_DESC=Fullstack development consultant

plantuml.nvim's People

Contributors

zapling avatar

Stargazers

 avatar  avatar

Watchers

 avatar

plantuml.nvim's Issues

feature request - parameterize the 'tmp' directory

Thanks for the work.

I would like to suggest a feature.
To parameterize the 'tmp' directory and configure it via calling the setup() function.

  • I'm in macos but have restrictions via enterprise policy even on the /tmp directory, so got this on first run:
Error executing Lua callback: Vim:E482: Can't open file /tmp/plantuml_nvim/index.html for writing: no such file or directory
stack traceback:
        [C]: in function 'writefile'
        ...im/site/pack/packer/start/plantuml.nvim/lua/plantuml.lua:44: in function 'setup_tmp_dir'
        ...im/site/pack/packer/start/plantuml.nvim/lua/plantuml.lua:60: in function 'entrypoint'
        ...im/site/pack/packer/start/plantuml.nvim/lua/plantuml.lua:74: in function <...im/site/pack/packer/start/plantuml.nvim/lua/plantuml.lua:74>
  • I wonder if you could build a parameter here:
local function setup_tmp_dir()
    vim.fn.jobstart('[[ ! -d /tmp/plantuml_nvim ]] && mkdir /tmp/plantuml_nvim')
    vim.fn.writefile(vim.split(index_html, '\n'), '/tmp/plantuml_nvim/index.html')
end

... which then can get configured via calling the setup() function?

by the way, here is my plugin configuration smippet:

    use {
        'zapling/plantuml.nvim',
        requires = { 'nvim-lua/plenary.nvim' },
        config = function()
            require('plantuml').setup()
        end
    }

... and my version on macos

NVIM v0.9.0
Build type: Release
LuaJIT 2.1.0-beta3

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.