Skip to content

superbrobenji/nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to my neovim setup.

Screenshot from 2024-04-17 14-32-44 Screenshot from 2024-04-17 14-32-54

demo.mp4

Installation

Prerequisites

  • You need neovim installed.
  • You need Grep and ripgrep installed.
  • You need Node installed

Optional dependencies

  • If you want to use Copilot, you'll need a Copilot subscription.

Installation steps

  • Clone this repo inside your config path, you can find the path by opening Neovim and type :h rtp.
  • Run :Copilot auth and follow the prompts.

Optional Extras

Installing Kitty terminal

Installing Kitty

  • Run curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin
  • OR you can install it manually from Kitty

Desktop Integration on Linux

  • Run ln -sf ~/.local/kitty.app/bin/kitty ~/.local/kitty.app/bin/kitten ~/.local/bin/
  • Run cp ~/.local/kitty.app/share/applications/kitty.desktop ~/.local/share/applications/
  • Run cp ~/.local/kitty.app/share/applications/kitty-open.desktop ~/.local/share/applications/
  • Run sed -i "s|Icon=kitty|Icon=/home/$USER/.local/kitty.app/share/icons/hicolor/256x256/apps/kitty.png|g" ~/.local/share/applications/kitty*.desktop
  • Run sed -i "s|Exec=kitty|Exec=/home/$USER/.local/kitty.app/bin/kitty|g" ~/.local/share/applications/kitty*.desktop

Installing Fira Code fonts and nerd fonts

  • For linux, run sudo apt install fonts-firacode
  • For macos:
    • Run brew tap homebrew/cask-fonts
    • Run brew install --cask font-fira-code For Nerd fonts icons download the nerd font icon pack

Installing Oh My Zsh

  • Run sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
  • Copy the .zshrc file to your home directory

Kitty Config files

  • Copy the files from kitty-config into the kitty folder in your config path.
  • Optionally, copy the .bashrc file to your home directory.

Installing tmux and fzf

Installing tmux

  • Run sudo apt-get install tmux for ubuntu or brew install tmux for mac users.
  • copy tmux.tokyonight.conf into your home directory and scripts into your .local file.

Installing fzf

  • Clone git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf.
  • Run ~/.fzf/install.

Available commands

  • :Mason This opens the LSP package manager where you can find and install any LSP config or linter you want.
  • :LspInstall finds and installs any relevant Lsp packages or linters for you file you're on.
  • :TSUpdate will update Treesitter.
  • :Lazy This opens the Lazy plugin manager where you can install and update your plugins

Things to note

  • Don't forget to run tmux before opening nvim if you want to be able to jump between projects quickly and easily.
  • The general keymaps are under /lua/terravim/remap.lua. Feel free to change them to your preference.
  • The keymaps for each plugin are under their respective config file in /after/plugin. If they are not there, then they are defined in the gereral remap file.
  • The general settings for Neovim is under /lua/terravim/set.lua
  • If you are using Windows. Go to the set.lua file and change the undodir according to the comment.

Adding new packages

When you want to add a new package, add it to /lua/terravim/plugins.lua as the others are. Then create a new config file for in under /after/plugin as a .lua file.

Set Git defaults

You can find my git defaults here.

TODOs

  • Possinbly write plugin to integrate nuget gallery to nvim.

About

my neovim env setup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages