Git Product home page Git Product logo

launch.nvim's People

Contributors

dasupradyumna avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

pcasotti

launch.nvim's Issues

Change vim.uv to vim.loop for stable

After installing launch.nvim with lazy, i get the following error message on startup:

.../.local/share/nvim/lazy/launch.nvim/plugin/launch.lua:31: attempt to index field 'uv' (a nil value)

I believe that vim.uv is only available in 0.10 since i tested in 0.9.4, I suggest using vim.loop instead.

attempt to index field 'task' (a nil value)

run LaunchOpenConfigFile and got this


Error executing Lua callback: ...l/share/nvim-custom/lazy/launch.nvim/lua/launch/view.lua:38: attempt to index field 'task' (a nil value)
stack traceback:
	...l/share/nvim-custom/lazy/launch.nvim/lua/launch/view.lua:38: in function '__index'
	...share/nvim-custom/lazy/launch.nvim/lua/launch/config.lua:108: in function 'open_file'
	...cal/share/nvim-custom/lazy/launch.nvim/plugin/launch.lua:19: in function <...cal/share/nvim-custom/lazy/launch.nvim/plugin/launch.lua:19>

feature: optional task/debug parameter for `:LaunchTask` and `:LaunchDebugger`

Did you check the documentation and existing issues?

  • I have read all the launch.nvim documentation
  • I have searched through all existing issues of launch.nvim

Is your feature request related to a problem? Please describe.

This plugin is just fantastic. All I want is the ability to map some keys to a few common task names like Build or Run.

Describe the solution you'd like

I think the best way to do this is to take an optional parameter like the title says.

Describe alternatives you've considered

At the very least, it'd be nice to expose a nice lua api because, at the moment, I need to copy a lot of code to do what I want.
image

Additional context

Thank you for your time.

Is the launch.nvim plugin supported on Windows?

I have configured the task by using LaunchOpenConfigFile command and then I saved it, but I have a problem with the config path. It seems to duplicate the home config path. I also tried your plugin on Linux OS and it worked very well.
How to fix it on Windows?
image
image

bug: the select user variable isn't selected

Did you check documentation and existing issues?

  • I have read all the launch.nvim documentation
  • I have searched through all existing issues of launch.nvim
  • My issue is non-trivial and does not belong in the Discussions section

Neovim Version (nvim -v)

0.10.0

Operating System & Version

Win 10

Describe The Bug

Hi,

I have tried to use your example to test the user variable.

Steps To Reproduce

I realized that the select mode can't work, I have tried using it on both WinOS and Linux OS.

return {
    task = {
        {
            name = 'Test User Variables',
            command = 'echo',
            args = { '{@select_type}', '{@input_type}' },
        }
    },
    var = {
        select_type = {
            type = 'select',
            desc = 'selection type variable',
            items = { '<item1>', '<item2>' }
        },
        input_type = {
            type = 'input',
            desc = 'input type variable',
            default = '<default_value>',
        },
    }
}

Expected Behavior

Could you please support me to check it?

Configuration Used To Reproduce

I used the default configuration which I follow your documentation

Config not being loaded anymore as there is actual content in it

Hey,

thanks for writing this plugin. Sadly I can't seem to actually add any tasks to it. Whenever I added anything to the task list, the config does not get loaded or refreshed anymore. If I leave the config completely empty, it shows the notification that the config has been reloaded, but it does not do that anymore with content in it. LaunchShowTaskConfigs also shows no tasks configured.

This is my minimal reproducible example:

 task = {
    {
      name = "List files",
      command = "ls -la"
    }
  }
}

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.