Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

e492 #71

Open
nevdawg123 opened this issue Mar 14, 2023 · 6 comments
Open

e492 #71

nevdawg123 opened this issue Mar 14, 2023 · 6 comments
Labels
documentation Improvements or additions to documentation

Comments

@nevdawg123
Copy link

I'm currently using a version of kickstart.nvim and when i added the plugin and set the keymap every time i try to run a file or code it says "e492: not an editor command:Run File, or run code:
Screenshot 2023-03-13 at 7 39 58 PM

@Skylli202
Copy link

Skylli202 commented Mar 16, 2023

Hi @nevdawg123,

I'm also starting my neovim journey with kickstart.nvim and I have issue installing code_runner.
How did you install it ? I think that the error is coming from a bad installation.

Edit :
I fix my installation with the following configuration file :

-- ~/.config/nvim/lua/custom/plugins/code_runner.lua

return {
  "CRAG666/code_runner.nvim",
  config = function()
    require("code_runner").setup ({
      filetype = {
        javascript = "cd $dir && node $fileName"
      }
    })
  end,
}

Note that I choose to use the multiple file configuration as explained in kickstart.nvim README.

@dorrajmachai
Copy link
Contributor

dorrajmachai commented Mar 21, 2023

@nevdawg123,

Have you tried this? What does your config look like? I think more information would help make your issue clearer. Like, @Skylli202, I've shared my config to give an example of what works. Any updated information from you will be greatly appreciated. Thanks!

@Uttah
Copy link

Uttah commented Apr 17, 2023

@nevdawg123,

Have you tried this? What does your config look like? I think more information would help make your issue clearer. Like, @Skylli202, I've shared my config to give an example of what works. Any updated information from you will be greatly appreciated. Thanks!

I caught the same after migrate to Lazy (with your config)...

@dorrajmachai
Copy link
Contributor

dorrajmachai commented Apr 17, 2023

@Uttah ,

Can you share your config file, as well as your nvim version and OS? It's hard to diagnose the issue without at least those things. Thanks!

@CRAG666 CRAG666 added the documentation Improvements or additions to documentation label May 25, 2023
@f-steinbauer
Copy link

f-steinbauer commented Jun 20, 2023

Hi, can you verify if the plugin is loaded by :Lazy? If not the commands won't be available.
In case it's not loaded, try to add event = "VeryLazy" to your config and try again.

return {
  "CRAG666/code_runner.nvim",
  event = "VeryLazy",
  opts = {
      filetype = {
      ...
     },
  },
}

@CRAG666
Copy link
Owner

CRAG666 commented May 25, 2024

@dorrajmachai use this in lazy config:

  keys = {
    {
      "<leader>e",
      function()
        require("code_runner").run_code()
      end,
      desc = "[e]xcute code",
    },
  },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

6 participants