Skip to content

Repository files navigation

🌀 Neovim Config

A personal Neovim configuration built on packer.nvim, with LSP, completion, fuzzy finding, a file tree, and the Rose Pine theme.

Requires Neovim 0.11+ (uses the modern vim.lsp.config / vim.lsp.enable API).

Features

Installation

  1. Back up any existing config:

    mv ~/.config/nvim ~/.config/nvim.bak
  2. Clone this repo into your config directory:

    git clone <your-repo-url>~/.config/nvim
  3. Install packer.nvim:

    git clone --depth 1 https://github.com/wbthomason/packer.nvim \
    ~/.local/share/nvim/site/pack/packer/start/packer.nvim
  4. Open Neovim and sync plugins:

    nvim

    Then run :PackerSync inside Neovim. Restart once it finishes — Mason will install the configured LSP servers (lua_ls, pyright, bashls, html, ts_ls, and more) on first launch.

Structure

.
├── init.lua # entry point — loads the mehdi module
├── lua/mehdi/
│ ├── init.lua # requires packer / remap / set, sets up nvim-tree
│ ├── packer.lua # plugin declarations
│ ├── remap.lua # general keymaps
│ └── set.lua # editor options
└── after/plugin/ # per-plugin keymaps & setup
├── telescope.lua
├── harpoon.lua
├── undotree.lua
├── fugitive.lua
├── treesitter.lua
└── colors.lua

Keybindings

Leader key is <Space>.

General

KeyAction
<leader>ffFormat buffer (LSP)
<leader>sSave file
<leader>xMake current file executable
<leader>rwReplace word under cursor
<leader>pPaste over selection without yanking
<leader>yYank to system clipboard
<leader>dDelete to void register
J / K (visual)Move selected lines down / up
<C-d> / <C-u>Half-page scroll, centered

File tree (nvim-tree)

KeyAction
<leader>eoOpen tree
<leader>ecClose tree

Telescope

KeyAction
<leader>pfFind files
<C-p>Find git files
<leader>psGrep for a string

Harpoon

KeyAction
<leader>aAdd file to Harpoon
<C-e>Toggle quick menu
<C-j>/<C-k>/<C-l>/<C-;>Jump to marked file 1–4

Git & history

KeyAction
<leader>gtOpen Fugitive (Git)
<leader>uToggle Undotree

License

Released under the MIT License.

About

🌀 My Neovim config

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages