Skip to content

BerqiaMouad/Neovim-Setup

Repository files navigation

💤 LazyVim

A starter template for LazyVim. Refer to the documentation to get started.

Requirements

  • NeoVim (>= 0.9.0)
  • Git (>= 2.19.0)
  • a Nerd Font (>= 3.0)
  • a C compiler for nvim-treesitter
  • node (>=18.0.0) for copilot
  • Python (>= 3.6) for the codeforces tool
  • make

Installation

cd ~/.config/
git clone https://github.com/BerqiaMouad/Neovim-Setup.git nvim
cd nvim/mouad_codeforces_tool
pip install -r requirements.txt

Usage

After you installed everything, now you just have to run the command nvim in your terminal and lazyvim will take care of all the plugins.

nvim

Some important changes to make

You have to change one simple thing so that the codeforces tool works properly. You have to change the file auth_codeforces.txt:

your_codeforces_handle
your_codeforces_password

PS: make sure that it is your handle and not your email !!!

Some important keybindings

  • <space>cp this will prompt you to enter the contest id like in the image below.

Create Contest

  • <space>cpf this will prompt you first to type the problem name (A, B, C...) then it will ask you to enter the programming language (currently only cpp or python) like in the images below.

Create Problem (Problem Name)

Create Problem (Programming Language)

Create Problem (Result)

  • <space>test this will test your current code against the sample test cases (PS: Failed does not always mean that the solution it wrong, sometimes the problem accepts multiple outputs, Failed only means that it does not match the given output.)

Test Solution (Passed Case)

Test Solution (Failed Case)

  • <space>sub this will prompt you first to enter problem name (A, B, C...) then it will ask you to enter the programming laguage (currently only cpp or python). // will add images later

Contribution

Don't hesitate to make some fork this repo and make some PRs if you find some bugs to address or adding support for more programming languages. Let's make this tool more useful.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published