Skip to content

TRC-Loop/neovim-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

TRCLoop's Nvim Config

https://dotfyle.com/TRC-Loop/neovim-config

Screenshots

Dog does not come with Neovim config!

πŸš€ Get Started

Prerequisites

  • Neovim of course: Install

    Install using snap, dnf, pacman on Linux eg. sudo snap install neovim

  • Luarocks (recommended): Install

    Install using apt, dnf, pacman on Linux eg. sudo apt install luarocks

  • Nerdfont: Download (Meslo), All Fonts

    Use any font you'd like. The Font in the Screenshots is Meslo.

  • Supported Terminal: MacOS iTerm2, Windows Terminal, kitty (cross-platform)

    The terminal should support a custom font and colors

  • C Compiler (like gcc or clang)

  • Go

    Install using apt, dnf, pacman on Linux eg. sudo apt install go

  • Python (with pip) for LSP's

  • NPM for LSP's

  • Git

    Install using apt, dnf, pacman on Linux eg. sudo apt install git

    Git is often pre-installed.

Installation

Important

Make sure your Neovim Config Directory is empty/non-existent. Delete it using

rm -rf ~/.config/nvim

or windows (Powershell) Remove-Item -Recurse -Force $env:LOCALAPPDATA\nvim, cmd: rmdir /s /q %LOCALAPPDATA%\nvim

MacOS/Linux:

git clone https://github.com/TRC-Loop/neovim-config.git ~/.config/nvim

Windows CMD

git clone https://github.com/TRC-Loop/neovim-config.git %LOCALAPPDATA%\nvim

Windows Powershell

git clone https://github.com/TRC-Loop/neovim-config.git $env:LOCALAPPDATA\nvim

Update Config

Caution

Custom tweaks you have done to the config will be lost.

MacOS/Linux:

rm -rf ~/.config/nvim && git clone https://github.com/TRC-Loop/neovim-config.git ~/.config/nvim

Windows Powershell:

Remove-Item -Recurse -Force $env:LOCALAPPDATA\nvim; git clone https://github.com/TRC-Loop/neovim-config.git $env:LOCALAPPDATA\nvim

Install LSPs

Warning

Instead of installing LSPs manually, use Mason: :Mason<Enter> How to use Mason

Old Commands (Manual)

Python:

pip install pyright

Lua:

https://luals.github.io/#neovim-install

Go:

go install golang.org/x/tools/gopls@latest

PHP:

npm install -g intelephense

HTML:

npm install -g vscode-html-languageserver-bin

Runs on πŸ’€Lazy

πŸ’» Keybinds

<leader> is (space)

πŸ“¦ Plugins

πŸ—‚οΈ Neotree

Open with <leader>e or :Neotree toggle

πŸ”­ Telescope

Open with <leader>ff or <leader>fg for Live-Grep

🏁 Alpha

Used for the nice Startup-Screen (nvim)

ℹ️ Lualine

Used for the nice little Status bar at the bottom. Change Datetime format in lua/plugins/lualine.lua in the datetime function.

πŸ‘ Noice

Used for the CMDLine. Delete to have the default CMDLine.

πŸš— nvim-cmp

Used for CMDLine Autocompletion. Use <tab>

πŸ’¬ Comment.nvim

Toggle comments with gcc or gc in Visual mode.

Auto closes brackets, quotes, etc.

Better syntax highlighting and parsing.

Motion Effect
⁠ vaf ⁠ select a function (outer)
⁠ vif⁠ select inside a function
⁠ vap ⁠ / ⁠ vip⁠ select parameter list
⁠ vac⁠ / ⁠ vic ⁠ select class block
⁠ vaC ⁠ / ⁠ viC ⁠ select conditional block
⁠ daf ⁠ delete function
⁠ yaf ⁠ yank function

πŸšͺ ToggleTerm

Open terminal with <control>t. Close it by typing exit in the Terminal.

🎨 catppuccin

Custom theme settings in catppuccin-custom.lua.

Shows keybindings popup when you type a <leader> command.

Adds indentation guides.

LSP support, config in lsp.lua.

πŸ•΅οΈβ€β™‚οΈ git-blame

Shows Git Info in Code.

πŸ‘Ύneocord

Adds Discord RPC so your friends know what you're up to. Config: lua/config/neocord.lua

πŸ₯– nvim-navic

Shows Breadcrumbs in top of the window (eg. in which function you are)

Highlights same words with an underline when hovering.

Says what it does. ysiw' Makes the current work surrounded with ' Before: test-123 After: 'test-123'

βš’οΈ Mason

Mason is used for managing LSPs.

Open with: :Mason<Enter>

Motion in Mason Effect
⁠ i ⁠ install
⁠ u⁠ update

Important

Installing Mason packages often requires: cargo, go, npm and pip It is recommended to first install those package managers!

πŸ’‘ Ideas

Maybe make a Macro on your keyboard which automatically installs nvim, with this config!

πŸ“₯ Contributing

If you've got an Idea which plugin could be added, open a pull request or an Issue, i appreciate all ideas!

⌨️ Cool Keyboard shortcuts

Add your own

Can be used as a Cheat-Sheet

  • gUiw: Make the word you are on full uppercase. eg. test -> TEST
  • ysiw': Make the word surrounded by ' eg. test -> 'test'
  • zz, zt, zb: Change the view relative to the cursor

About

My Neovim Config

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages