Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

How to config the yabs.nvim echo some hints after command is done? #54

Open
lee-shun opened this issue Oct 24, 2022 · 0 comments
Open

Comments

@lee-shun
Copy link

Hello!

Thank you for this great plugin!

the following is my setup file for cpp:

local cpp_config = {
	default_task = "build_and_run",
	tasks = {
		build = {
			command = function()
				return "g++ -std=c++11 "
					.. vim.fn.expand("%:t")
					.. " -Wall -ggdb -o "
					.. vim.fn.expand("%:t:r")
					.. ".out"
			end,
			output = "quickfix",
			opts = { open_on_run = "auto" },
		},
		run = {
			command = function()
				return "time ./" .. vim.fn.expand("%:t:r") .. ".out"
			end,
			output = "terminal",
		},
	},
}

require("yabs"):setup({
	languages = {
		cpp = cpp_config,
	},
})

Everything works fine,
but when a file is compiled, I sometimes don't know if the build is done or not, especially when there are no warnings at all.

I expect it can :

  1. echo some "hints" when there is no warning or errors
  2. open quickfix list when there are some errors

Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant