chore: Added compiler explorer with config

This commit is contained in:
Afonso Franco 2023-09-20 15:43:55 +01:00
parent be5dcf6c5d
commit b88cf78d26
Signed by: afonso
SSH key fingerprint: SHA256:gkVPzsQQJzqi21ntQBV6pXTx4bYI53rFGI4XtvCpwd4

View file

@ -103,6 +103,25 @@ lazy.setup({
},
-- Rename variable pop up
'stevearc/dressing.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
},
{
'windwp/nvim-autopairs',