Skip to content

This is a fork of ThePrimeagen's NeoVim Lua config. I have edited it and added Tabnine.

Notifications You must be signed in to change notification settings

LinuxUser255/init.lua

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ThePrimeagen's init.lua

Getting Started

Install the following:

  • ripgrep (It's in the Debian repos)
    sudo apt install ripgrep
  • Use the latest version of Zsh <-- Link
  • You will need a recent version of NeoVim too, the ones in the apt repos are too old.
  • The most compatable version of NeoVim for this config, is NVIM v0.9.4
  • Use these commands to install it, and u must have Packer installed alongside this init.lua repo too

- Then you can git clone this repo in your home directory, and run the dev bash script to clean out your current nvim files

#!/usr/bin/env bash

# To start with a clean slate, you will need to delete and remove your current/previous neovim files and dirs.
rm -rf ~/.config/nvim
ln -s $(pwd) ~/.config/nvim

- Then install NVIM v0.9.4, and Packer

wget https://github.com/neovim/neovim/releases/download/stable/nvim.appimage
chmod +x nvim.appimage
sudo mv nvim.appimage /usr/local/bin/nvim

# git clone packer
git clone --depth 1 https://github.com/wbthomason/packer.nvim\\n ~/.local/share/nvim/site/pack/packer/start/packer.nvim

Installation Video walkthrough by ThePrimeagen:

How to create this init.lua from scratch: https://youtu.be/w7i4amO_zaE

init lua

Click here for NeoVim documentation on netrw:

How to use netrw. The basics.

  • Enter netrw from the terminal: nvim .
  • Runtimepath: :h rtp
  • Create a new file: enter netrw: nvim . press the percent sign % then name it.
  • Create a directory, enter netrw nvim . then press d, then name it.
  • To source a file use the command :so
  • Scroll using j and k, (up and down)
  • Select / open a file or dir with Enter
  • Close a file leader pv the leader key is the spacebar
  • Fuzzy find while in netrw leader pf
  • Open the fuzzy finder from within a neovim file (accessed via netrw): Ctrl + p
  • Scroll up and down within the fuzzy finder using up and down arrow keys and typing the file name
  • Open up the file tree without closing the file you are in. use the cmd :Vex vertical explore. (split window).
  • Hop left-right between windows: enter window mode ctrl + w then l to go right & ctrl + w + h go left.
  • Return to the original file, (close all window splits), ctrl + w + o

For anyone that is interested in Prime's vimrc, he will have a commit log below documenting each commits (easy to C-f the change you want to know about though i would just suggest git log -S).

Change Log (as of the date of me forking this repo: 04/05/2023

  • 33eee9ad initial commits
  • cb210006 netrw, autogroups for yank highlighting, and auto remove whitespace
  • c8c0bf4a zenmode. i really like this plugin
  • 81c770d2 copilot testing
  • 4a96e645 fugitive mappings for push and pull
  • a3bad06a disabled eslint. driving me crazy

About

This is a fork of ThePrimeagen's NeoVim Lua config. I have edited it and added Tabnine.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 98.7%
  • Shell 1.3%