CRAG666/code_runner.nvim

C++ not configured but my main.cpp is compiling and running

Closed this issue · 1 comments

I installed the plugin and configured it for java , python, Javscript and rust as shown in the example config. I also put the shortcut key for running the code. I wanted to run c++ code so i wanted to configure this plugin but i didnot configure it instead i downloaded another cmake plugin. I didnot bind the cmake plugin though just installed it. Now when i open main.cpp file and do the shortcut for coderunner it runs my c++ code. How is this possible ?

Because the plugin has already some preconfigured command for specific filetypes, if the user doesn't define them. Take a look at /lua/code_runner/options.lua to see what's there by default.