Skip to content

notrtdsx/nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

This project is on Codeberg too: https://codeberg.org/notrtdsx/nvim

Neovim Configuration

A minimal, efficient, and modern Neovim setup powered by lazy.nvim.
Includes LSP, autocompletion, file exploration, syntax highlighting, and more.


✨ Features

UI Enhancements


📥 Installation

1. Prerequisites

2. Install the Configuration

Clone this repository to your Neovim config directory:

git clone https://github.com/notrtdsx/nvim.git ~/.config/nvim

3. Launch Neovim

Open Neovim:

nvim

On first launch:

  • lazy.nvim will automatically install itself and all plugins.
  • Wait for the installation to complete (may take a few minutes).

4. Verify Installation

Run :Lazy in Neovim to open the plugin manager UI and confirm all plugins are installed.


🎯 Usage

Keybindings

Key Action
<leader>ff Telescope: Find files
<leader>fg Telescope: Live grep
<leader>fb Telescope: Buffers
<leader>e Toggle file explorer (nvim-tree)
gd Go to definition (LSP)
K Hover documentation (LSP)
<leader>rn Rename symbol (LSP)
<leader>ca Code actions (LSP)
[d / ]d Jump to previous/next diagnostic
<leader>b Build project (make -j$(nproc))
<C-h/j/k/l> Navigate splits

Note: <leader> is mapped to Space.

Commands

  • :Mason – Manage LSP servers and tools.
  • :NvimTreeToggle – Toggle file explorer.
  • :Telescope – Open fuzzy finder.
  • :Lazy – Manage plugins.

🛠️ Customization

Adding Plugins

Edit the require("lazy").setup({ ... }) block in init.lua:

require("lazy").setup({
  -- Add new plugins here, e.g.:
  { "plugin-repo/plugin-name", config = true },
})

Run :Lazy sync to install or update plugins.

Changing Colorscheme

Modify the colorscheme in init.lua:

require("gruvbox").setup({ contrast = "hard" })
vim.cmd.colorscheme("gruvbox") -- Change to your preferred scheme

LSP Configuration

Add new language servers via mason-lspconfig:

require("mason-lspconfig").setup({
  ensure_installed = { "clangd", "pyright", "tsserver" },
})

🐛 Troubleshooting

Plugins Not Loading?

  • Run :Lazy sync to force sync plugins.
  • Check :Lazy log for errors.

LSP Not Working?

  • Ensure the language server is installed (:Mason).
  • Verify filetypes are supported (e.g. clangd for C/C++).

Font Issues?

Install a Nerd Font (e.g. FiraCode Nerd Font) and set it as your terminal font.

About

my neovim configuration, wip

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages