Skip to content

TeoBale/my-nvim-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

My neovim config

Requirements

  • Neovim >= v0.9
  • ripgrep
  • nodejs and npm
  • a brain (mandatory)
  • xrdb for xresources

Installation

Clone repo to your nvim .config

git clone --depth 1 https://github.com/TeoBale/my-nvim-config ~/.config/nvim

Add mason to paht. ( Important to install LSP )

# this is for zsh
export PATH=$PATH:~/.local/share/nvim/mason/bin
source ~/.zshrc

Keybinds for my config

Keys Function
CTRL h / j / k / l Moving Window Focus Towards Left/Up/Down/Right
CTRL b Open And Close NvimTree
CTRL f Format Files With Built In Lsp
CTRL \ Open And Close ToggleTerm
LDR t t Open And Close ToggleTerm
z R Open All Folds
z M Close All Folds
z c Close Fold Under Cursor
z o Open Fold Under Cursor

Basic File Operations

Keys Function
LDR q q Exit Neovim
LDR q w Save And Exit Neovim
LDR q s Save File
LDR q f Format File
LDR q x Close Current Buffer

Telescope

Keys Function
LDR f f Basic File Picker
LDR f g Search All Recently Visited Files
LDR f r Search File By String
LDR f c Cooler Colorscheme Picker

Hop

Keys Function
LDR h a Search For Anywhere in the File
LDR h c Search By A Single Character
LDR h C Search By Two Characters
LDR h l Search By Starting Of Line
LDR h v Search Vertically
LDR h w Search By Word

Grapple

Keys Function
LDR G g Show All The Bookmarks
LDR G t Toggle A Boookmark
LDR G a Add A Bookmark
LDR G r Delete A Bookmark

Other

Keys Function
LDR l l Open Lazy Dashboard
LDR l m Open Mason Dashboard
LDR l c Show Available Code Actions
LDR l s Open Symbols Outline

Custom Colorschemes

  • Make a new color scheme /lua/themes/schemes/scheme.lua (copy the default colorscheme and change the colors)
  • Make a colors file for it /colors/scheme.lua
-- /colors/scheme.lua
require("themes").setup({
  theme = "scheme",
  transparent_background = false
})
  • Set the color scheme in lua/core/cfg.lua
M.colorscheme = 'pop'

Statusline Style

There are two prebuilt styles

  • To change the style edit /lua/core/cfg.lua
M.statusstyle = 'minimal' -- minimal | fancy
  • Reload Neovim

Reference

Credits to:

About

neovim .files to replicate my setup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages