krady21 / compiler-explorer.nvim Goto Github PK
View Code? Open in Web Editor NEWRun compilers and inspect assembly directly from Neovim with the help of https://godbolt.org
License: MIT License
Run compilers and inspect assembly directly from Neovim with the help of https://godbolt.org
License: MIT License
If the first compilation by CECompileLive
fails, the CECompileLive
won't create autocmd BufWritePost
.
which it's a little inconvenient.
and seems there's no option can control the quickfix-window popup. I'd rather use the virtual text to indicate the error, don't really need quickfix-window ( might block our sight)
Replace curl wrapper used for making REST API calls with internal version once such interface is provided in neovim.
Mentioned https://github.com/p00f/godbolt.nvim highlights the selected line(see from 19 sec).
Could you add the same feature?
Not working due to vim.filetype.match
breaking change neovim/neovim#14090 (comment).
Error executing lua callback: ...compiler-explorer.nvim/lua/compiler-explorer/autocmd.lua:87: Cursor position outside buffer
Example:
#include <iostream>
using namespace std;
int main(int argc, char **argv) {
cout << "You have entered " << argc << " arguments:"
<< "\n";
for (int i = 0; i < argc; ++i)
cout << argv[i] << "\n";
while (1 == 1) {
cout << "yes" << endl;
}
}
Compilled with gcc 11.3 -O0.
Compiling with -O3 results in even more of these errors.
The plugin currently cache vim.ui. functions:
compiler-explorer.nvim/lua/compiler-explorer/init.lua
Lines 13 to 14 in c21396d
vim.ui.*
.Currently the plugin opens a fuzzy finder for each step, but it would be nicer to have the ability to pass all parameters from command window. This would allow to avoid selecting the same stuff when you changing flags, for example. Neovim supports custom commands completion, so using it would be very convenient.
This is a very good nvim extension and I am using it everyday recently.
Issue: I want to specify the c++ compiler as below
require("compiler-explorer").setup({
-- url = "https://godbolt.org",
url = "http://localhost:8888",
languages = { -- Language specific default compiler/flags
c++ = {
compiler = "clang++default",
compiler_flags = "-O0 -Wall -pedantic -fno-exceptions -std=c++20",
},
},
})
But lua does not support +
in language name such as c++
. I have tried to change it to cpp
, also not work.
Is there any way to solve this? Looking forward for your reply.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.