Skip to content

Beloin/Launch.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lua

Launch.nvim

Current settings version: 0.2.0

{
  "Beloin/Launch.nvim",
  config = function()
    require('Launch').setup()
  end,
  dependencies = {
    "folke/noice.nvim",
    "nvim-telescope/telescope.nvim",
  }
}

launch.nvim example

{
  "version": "0.2.0",
  "configurations":[ 
    {
      "name": "My C runnable",
      "lang": "c",
      "type": "codelldb", // Following DAP types
      "program": "./target",
      "request": "launch",
      // Act as preprocessor
      "pipeline": [ "echo 'Hello World'", "make debug" ],
      "args" : [ "examples/flow-control/example_02.bc" ],
      "env": { 
        "ENV_VAR": "1" 
      }
    }
  ],
  "tasks": [
    {
      "name": "Generate compile_commands.json",
      "pipeline": [
        "bear -- make debug"
      ]
    }
  ]
}

Dependencies

  1. Noice
  2. Telescope

Posterior works

  • Java Implementation
  • Varible expansion (Including env variables)
    • List of default variables
    • Command variables (if not exists create it)
  • Command Prompt

References

  1. Usually all code is inspired from nvim-dap vscode extension
  2. Following some tips with nvim-plugin-template
  3. References in nvim-dap

Java:

TODOs:

  • Implement Pipeline
  • Configure args usage
  • Fix per project env call
  1. Strong usage of nvim-jdtls
  2. References in nvim-dap
  3. References from Java Debug Configuration
  4. Also using vscode-java-options

About

Nvim Launch settings for DAP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages