Code Monkey home page Code Monkey logo

compiler-explorer.nvim's People

Contributors

jafarabdi avatar krady21 avatar leaxoy avatar theofabilous avatar vdbe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

compiler-explorer.nvim's Issues

Auto scroll from assembly results in "Cursor position outside buffer"

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.

grafik

Compiling with -O3 results in even more of these errors.

Add the select language, compiler and flags from command

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.

How to specify compiler for the languages "c++"

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.