Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Qfrun.nvim

Qfrun

Installation

{
  "Kurama622/qfrun.nvim",
  opts = {
    project_config_name = ".env",
    parse_stdout_as_stderr = false,
    -- set language compile options
    -- e.g.
    -- cpp = {
    --   { cmd = "g++ -Wall ${SRC} -o ${TARGET} && ./${TARGET}", desc = "run in qf" },
    --   { cmd = "g++ -Wall ${SRC} -o ${TARGET}", on_done = "./${TARGET}", desc = "run in term mode" },
    --   { cmd = "make", desc = "build by make" },
    -- },
    -- python = "python ${SRC}".
    -- c = "gcc ${SRC} -o ${TARGET}->./${TARGET}", -- <build cmd>-><on_done cmd>
  },
}

Usage

set language compile options in opts or set the project config file (default .env)

.env:

  • PROJECT_COMPILE_LANGS: Optional. Analysis of output in multiple languages. Place at the beginning of the .env file.
    • e.g.: PROJECT_COMPILE_LANGS=python,cpp
  • SRC_DIR: Optional. When the error message contains an incorrect path, configure it.
  • QF_{language}_COMPILE_COMMAND
SRC_DIR=/home/usename/source_code_path
QF_CPP_COMPILE_COMMAND=./build.sh
QF_C_COMPILE_COMMAND=./build.sh->./output
:QfCompile
:QfReCompile
:QfClose

Press i in qf window to input the arguments to be executed.

popup_win_opts: (on_done window options)

  • relative
  • width_ratio
  • height_ratio
  • border

Reference

About

compile and run code in quickfix window

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages