Giter VIP home page Giter VIP logo

nvim's Introduction

My Neovim Configuration ๐Ÿš€

Welcome to my Neovim configuration repository, tailored for 42 students and designed for efficient low-level development in C/C++. This lightweight setup is optimized to provide a seamless coding experience with essential plugins and configurations suitable for resource-constrained environments. ๐Ÿ› ๏ธ๐ŸŽจ

Neovim Configuration Screenshot

Features ๐ŸŒŸ

  • Lazy Loading: Configurations are optimized for performance with lazy loading of plugins using lazy.nvim.
  • Enhanced Key Mappings: Streamlined shortcuts to maximize productivity and ease navigation.
  • Visual Enhancements: Includes the elegant rose-pine theme, optimized for both light and dark modes.
  • LSP and Autocompletion: Full setup for Language Server Protocol (LSP) support and smart autocompletion.
  • Developer-Friendly Utilities: Tools like vim-fugitive and nvim-comment integrated for an improved Git and coding experience.
  • 42 School Header: Automatically adds the 42 header to your files using 42header.nvim with the shortcut <leader>11.
  • C Formatter: Integrated with c-formatter-42 for consistent C/C++ code formatting, accessible via :CFormatter42 command.
  • Navigation Enhancements: Utilizes oil.nvim for improved file navigation, including a shortcut - to quickly move to parent directories.
  • Undo Management: undotree managed with <leader>u to navigate changes and coding history.

Installation ๐Ÿ“ฆ

  1. Clone the repository to your desired location:
    git clone https://github.com/bonsthie/nvim ~/.config
    
  2. Start Neovim and the plugins will be installed automatically on first run, thanks to the lazy.nvim setup.
  3. To enable C/C++ formatting, install the C Formatter:
    pip3 install c-formatter-42 --user
    
    The formatter can be found at c_formatter_42 GitHub repository.

Usage ๐Ÿ“˜

  • Key Mappings:

    • <leader>pv - Open project files.
    • <leader>gd - Go to definition.
    • <C-d> and <C-u> - Scroll down and up with centering.
    • <leader>s - Quick substitution in current word.
    • - - Open parent directory with oil.nvim.
    • <leader>u - Toggle the undo tree with undotree.
  • Key Mappings 42:

    • <leader>11 - Insert or update the 42 school header with 42header.nvim.
    • :CFormatter42 - format the code at 42 norm

Customization ๐Ÿ› 

You can customize various aspects by editing the Lua files located in the lua folder. Each file is segmented to handle different configurations like key mappings, plugin setups, and appearance settings.

Happy Coding! ๐Ÿ’ป๐ŸŒˆ

nvim's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

keyzox71

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.