Skip to content

Latest commit

 

History

History
178 lines (111 loc) · 4.63 KB

README.md

File metadata and controls

178 lines (111 loc) · 4.63 KB

Neovim Dot-files

This repository contains Neovim config files for both Linux and Windows-based environments.

Features

1. Basic Options

  • I have set basic options like tabstop, relative number, etc., which you can find here.
  • This also includes fetching two color schemes: catppuccin and material.

alt text

2. Lazy.nvim

  • Lazy.nvim is a new plugin manager for Neovim, replacing the now deprecated packer.
  • The setup file for this plugin is here, and the list of plugins to be installed is mentioned here.

alt text

3. LSP (Language Server Protocol)

  • Neovim comes with built-in LSP support, enabling features like code suggestions, autocompletions, etc. The setup for this is here.

    • Snippets: With LSP and language servers installed using mason, I also utilize nvim-cmp for autocompletion, whose setup is here.

    alt text

4. Telescope

  • Telescope makes navigation, file finding, and searching for keywords in entire projects very easy. The setup is here.
    • I've also used the treesitter plugin for syntax highlighting and more.

alt text

5. Discord RPC Integration

  • Additionally, I've integrated nvimcord to enable Discord Rich Presence in Neovim. This feature enhances collaboration and showcases your activity to others on Discord.
  • To update your Discord Rich Presence, open and edit a file in Neovim, then press Esc to enter normal mode. Type :nvimcordupdate, then press Tab and Enter to update and display your Rich Presence on Discord.

alt text

6. Markview Plugin

  • This plugin helps to render markdown in terminal itself.
  • This helps to understand and take notes easily without opening browser for markdown_preview.

alt text

Background

  • The background is removed by default. If you want to enjoy your Neovim with a background, simply comment out line 29 here.

Installation

  • Ensure you have Neovim v0.8.0 or higher:

     nvim --version
  • Ensure you have NVIM > v0.8.0

  • Install ripgrep


  1. Linux

    apt install ripgrep # debian based
    pacman -S ripgrep # Arch
    # Baki dekhlo apna apna

  1. Windows

    scoop install ripgrep

    or

    Refer this: ripgrep



  • Make sure you have node and npm installed.

  • ensure presence of git in the cmd.

  • git should be installed.


Linux


1. Clone this repo in `.config/nvim`. Create it if not already there with `mkdir .config/nvim`.
mkdir ~/.config/nvim
cd ~/.config/nvim
git clone  "https://github.com/hail0hydra/gardua_nvim_dotfs" .

  1. Run nvim

nvim

Windows


  • Make sure you have make and gcc installed.
  • ensure fzf is installed as well
    scoop install gcc make fzf

  1. Navigate to %USERPROFILE%\AppData\Local\ and ensure the presence of nvim directory (not to be confused with nvim-data directory).

cd "%USERPROFILE%\AppData\Local\"

  1. If nvim directory isn't there make it and navigate into it

mkdir nvim
cd nvim

3. Clone the github repo.
git clone "https://github.com/hail0hydra/gardua_nvim_dotfs" .

4. Run nvim
nvim

Bonus


  • To use dicord presence as in vscode, just go here and uncomment the file. Make sure discord is on before opening nvim.

  • To use Markdown Preview you can run :call mkdp#util#install() in any file just once.

  • This function is already mapped to <F5>.