[MINOR] Added compiler explorer with config

This commit is contained in:
Afonso Franco 2023-09-20 15:43:55 +01:00
parent 453df820e3
commit 1b9d082049
Signed by: afonso
SSH key fingerprint: SHA256:JiuxZNdA5bRWXPMUJChI0AQ75yC+cXY4xM0IaVwEVys
2 changed files with 21 additions and 5 deletions

View file

@ -104,7 +104,23 @@ lazy.setup({
-- Rename variable pop up
'stevearc/dressing.nvim',
{
'krady21/compiler-explorer.nvim'
'krady21/compiler-explorer.nvim',
config = function()
require("compiler-explorer").setup({
url = "https://godbolt.org",
infer_lang = true, -- Try to infer possible language based on file extension.
line_match = {
highlight = true, -- highlight the matching line(s) in the other buffer.
jump = true, -- move the cursor in the other buffer to the first matching line.
},
open_qflist = true, -- Open qflist after compilation if there are diagnostics.
split = "split", -- How to split the window after the second compile (split/vsplit).
compiler_flags = "", -- Default flags passed to the compiler.
job_timeout_ms = 25000, -- Timeout for libuv job in milliseconds.
languages = { -- Language specific default compiler/flags
},
})
end
},
{