Skip to content

Givo29/nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nvim/

Installation

General Dependencies

LSP/Formatting/Linting Dependencies

Optional dependencies based on your preferred LSPs and what Mason is installing.

  • NodeJS
  • Python 3.x Virtual Environment

Instructions

Install requires Neovim 0.9+. Always review the code before installing a configuration.

  1. Clone the repository and install the plugins:
git clone [email protected]:Givo29/nvim ~/.config/nvim
  1. Open Neovim

Layout

  • Lua
    • config/init.lua: General configuration and settings
    • config/lazy.lua: Lazy.nvim setup
    • plugins/*: Plugin specific configuration

Plugins

colorscheme

completion

diagnostics

formatting

fuzzy-finder

lsp

lsp-installer

marks

nvim-dev

plugin-manager

snippet

syntax

terminal-integration

utility

Undo management

Language Servers

  • bashls
  • emmet_ls
  • html
  • lua_ls
  • pylsp
  • tailwindcss
  • tsserver

Keymaps

General

  • Leader: <space>
Mode Keystroke Action
v K Move selected line up
v J Move selected line down
n J Move below line to end of current line
x <leader>p Preserve yank buffer when pasting over selected text
n, v <leader>y Yank to system clipboard

Harpoon

Mode Keystroke Action
n <leader>a Add file to harpoon buffer
n <ctrl>e Toggle quick menu
n <ctrl>h Select file 1
n <ctrl>j Select file 2
n <ctrl>k Select file 3
n <ctrl>l Select file 4

LSP

Mode Keystroke Action
n gr Find references
n gR Rename object
n gD Go to declaration
n gd Go to definition
n gi Show implementation
n gt Go to type definition
n, v ga Show code actions
n K Show documentation
n <leader>rs Restart LSP client

Formatting

Mode Keystroke Action
n gq Format current file
v gq Format current selection

Cmp (Autocomplete)

Mode Keystroke Action
i <C-Space> Show autocomplete suggestions
i <C-e> Close autocomplete suggestions
i <CR> Accept selected suggestion
i <C-k> Previous suggestion
i <C-j> Next suggestion
i <C-b> Scroll docs up
i <C-f> Scroll docs down

ToggleTerm

Mode Keystroke Action
a <ctrl>\ Toggle Terminal

Trouble

Mode Keystroke Action
n <leader>t Toggle for current buffer
n <leader>R Toggle for current project
n <leader>ts Toggle trouble symbols
n <leader>tq Toggle quick fix list

Undotree

Mode Keystroke Action
n <leader>u Toggle undotree

This readme was generated by Dotfyle

About

New nvim config

Resources

Stars

Watchers

Forks

Languages