Skip to content

hail0hydra/neovim.files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 (discontinued...)

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

alt text

7. Notes and Notification

  • Some custom files have been added to after/plugin that help in linking and taking notes easily.

  • keymaps.lua has been updated accordinly along with one more file being added.

  • Notification features added using notify.nvim




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 and yarn


  • Linux

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

  • Windows

    scoop install ripgrep

    or

    Refer this: ripgrep


    • Common
    npm i yarn -g #universal
    


  • 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/neovim.files" .

  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/neovim.files" .

4. Run nvim
nvim



Mac


  • being a UNIX based environment, if you follow the same steps in Linux Installation, you can get the neovim config working for you. (tested on my friend's system).

  • You can use brew or any other package manager to install all the dependencies like node, yarn, npm, etc.



  • TLDR: Just follow Linux steps



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>.

About

my neovim config files {Linux, Mac and Windows}

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages