Skip to content

fabio1079/neovim-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neovim Setup

Installation

Prerequisites

  • Neovim (v0.11+)
  • git
  • ripgrep (for Telescope live grep)
  • A Nerd Font installed in your terminal (for icons)

Clone

git clone https://github.com/fabio1079/neovim-setup.git ~/.config/nvim

Then run nvim — lazy.nvim will auto-install all plugins on first launch.

Uninstall

rm -rf ~/.config/nvim
rm -rf ~/.local/state/nvim
rm -rf ~/.local/share/nvim

Structure

~/.config/nvim/
├── init.lua                      # Entry point
└── lua/
    ├── config/
    │   ├── options.lua           # General settings (line numbers, tabs, leader key)
    │   ├── keymaps.lua           # Key mappings
    │   └── lazy.lua              # Plugin manager bootstrap
    └── plugins/
        ├── tree.lua              # nvim-tree (Space+e to toggle)
        ├── statusline.lua        # lualine (airline-like status bar)
        ├── colorscheme.lua       # Catppuccin theme
        ├── treesitter.lua        # Syntax highlighting (python, js, ts)
        ├── telescope.lua         # Find in files (Space+ff)
        ├── cmp.lua               # Autocomplete config
        ├── lsp.lua               # LSP (pyright, ts_ls, lua_ls via Mason)
        ├── autopairs.lua         # Auto-close brackets and quotes
        ├── gitsigns.lua          # Git diff markers in the gutter
        └── indent.lua            # Indent guide lines

Key bindings

  • Space e — toggle file tree
  • Space f f — find files
  • Space f g — live grep (search content in files)
  • Space f b — find open buffers

LSP

  • gd — go to definition
  • gr — go to references
  • K — hover documentation
  • Space rn — rename symbol
  • Space ca — code action
  • Space d — show diagnostics

Autocomplete

  • Enter — always inserts a newline, never accepts a suggestion
  • Ctrl+y — confirms the autocomplete suggestion
  • Tab / Shift+Tab — navigate through suggestions

About

My neovim setup

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages