Skip to content

WhoisCipher/nvim-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

𝗡𝗲𝗼𝘃𝗶𝗺 𝗖𝗼𝗻𝗳𝗶𝗴

My personal Neovim configuration with Lazy.nvim as the package manager.

Table of Contents

Features

  • LSP & Autocompletion: Powered by lspconfig, nvim-cmp, and LuaSnip for intelligent code completion and navigation.
  • Git Integration: With fugitive you have seamless git support directly in Neovim.
  • Telescope: A fuzzy finder to quickly search for files, buffers, and other resources.
  • Harpoon: Quick file navigation to jump between frequently used files.
  • Tree-sitter: Provides syntax highlighting and better code understanding with intelligent parsing.
  • Cloak: Censor's the contents of .env file

Plugins

UI & Navigation

  • Telescope: Fuzzy finder for files, buffers, and more.
  • lualine: A statusline plugin to display essential information.
  • cloak: Hides the environment variables.

Git Integration

Language Server Protocol (LSP)

  • nvim-lspconfig: Collection of LSP configurations for various languages.
  • mason.nvim: Handles installing and managing LSP servers, linters, and formatters.

Autocompletion

  • nvim-cmp: Autocompletion plugin for Neovim.
  • cmp-buffer: Buffer completion source for nvim-cmp.
  • cmp-path: Path completion source for nvim-cmp.
  • cmp_luasnip: LuaSnip completion source for nvim-cmp.
  • LuaSnip: Snippet engine for Neovim.

Syntax Highlighting

  • nvim-treesitter: Syntax highlighting and better parsing for many languages.

File Navigation

  • Harpoon: Easily manage and switch between files.

Color Schemes

Installation

  1. Install Neovim (if you haven't already) via neovim.io.

  2. Install Lazy.nvim: Follow the installation instructions from the official Lazy.nvim repository: Lazy.nvim Installation

  3. Clone the repository (or add it to your config directory):

    Clone your configuration into ~/.config/nvim/ (or wherever your Neovim configuration is located).

    git clone https://github.com/WhoisCipher/nvim-config ~/.config/nvim
  4. Install Plugins: Open Neovim and run:

    :Lazy sync

    This will automatically install and set up all the plugins.

  5. Set the Color Scheme: If you want to switch color schemes, change it in the configuration file:

    :colorscheme rose-pine

    You can switch to tokyonight by replacing rose-pine with tokyonight.

Usage

  • Telescope: Press <leader>pf to find files, <leader>ps to search for words in files, and <C-p> for git-files.
  • LSP: Autocompletion and diagnostics should work out of the box when you open a file.
  • Git: Use commands like :Git, :Git commit -m "your commit message", etc., for Git operations.
  • Harpoon:
    • Press <leader>a to mark.
    • Press <leader>h, <leader>t, <leader>s & <leader>n between files 1-4 marked respectively.
    • Press <leader>e to open GUI for marked files.

Customization

The remaps are all done according to my work-flow under the remaps. Make sure that you change this to your own personal preference as the vim experience has to be all but personalized. Welcome to the vim cult.

Installation

Click to expand 📦
  1. Install Neovimneovim.io
  2. Install Lazy.nvimLazy.nvim Installation
  3. Clone the repository:
    git clone https://github.com/WhoisCipher/nvim-config ~/.config/nvim