Skip to content

trilowy/nvim-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neovim configuration

Installation

To clone with:

git clone git@github.com:trilowy/nvim-config.git ~/.config/nvim/

Keymaps

Note: <leader> is space in this configuration.

General

  • <leader>w - [w]rite buffer
  • <leader>c - [c]lose buffer
  • <leader>d - hover [d]iagnostic
  • <A-o> - add empty line below
  • <A-O> - add empty line above

auto-session plugin

  • <leader>se- [s]earch s[e]ssion

nvim-cmp plugin

  • <C-b> and <C-f> - scroll the documentation window [b]ack/[f]orward
  • <C-n> and <C-p> - select the [n]ext/[p]revious item
  • <C-i> - accept ([i]nsert) the completion
  • <C-Space> - manually trigger a completion
  • <C-l> and <C-h> - move to the right/left of each of the expansion locations (function arguments)

conform.nvim plugin

  • <leader>f - [f]ormat buffer

crates.nvim plugin

  • <leader>rt - [r]ust crates: [t]oggle
  • <leader>rr - [r]ust crates: [r]eload
  • <leader>rv - [r]ust crates: show [v]ersions
  • <leader>rf - [r]ust crates: show [f]eatures
  • <leader>rd - [r]ust crates: show [d]ependencies
  • <leader>ru - [r]ust crates: [u]pdate
  • <leader>rU - [r]ust crates: [U]pgrade
  • <leader>rA - [r]ust crates: upgrade [A]ll crates
  • <leader>rx - [r]ust crates: e[x]pand to inline table
  • <leader>rX - [r]ust crates: e[X]tract into table
  • <leader>rH - [r]ust crates: [H]omepage
  • <leader>rR - [r]ust crates: [R]epository
  • <leader>rD - [r]ust crates: [D]ocumentation
  • <leader>rC - [r]ust crates: open [C]rates.io

gitsigns.nvim plugin

  • ]c and [c - git: next/previous [c]hange
  • <leader>ga - [g]it: [a]dd hunk (stage)
  • <leader>gA - [g]it: [A]dd buffer (stage)
  • <leader>gb - [g]it: [b]ranches
  • <leader>gB - [g]it: [b]lame line
  • <leader>gd - [g]it: [d]iff against index
  • <leader>gD - [g]it: [D]iff against last commit
  • <leader>ge - [g]it: toggle git show d[e]leted
  • <leader>gf - [g]it: [f]ile commit history
  • <leader>gh - [g]it: project commit [h]istory
  • <leader>gp - [g]it: [p]review hunk
  • <leader>gr - [g]it: [r]eset hunk
  • <leader>gR - [g]it: [R]eset buffer
  • <leader>gs - [g]it: [s]tashes
  • <leader>gt - [g]it: s[t]atus
  • <leader>gT - [g]it: [T]oggle show blame line
  • <leader>gu - [g]it: [u]ndo stage hunk

nvim-lspconfig plugin

  • gd - LSP: [g]oto [d]efinition
  • gr - LSP: [g]oto [r]eferences
  • gI - LSP: [g]oto [I]mplementation
  • gD - LSP: [g]oto [D]eclaration
  • gy - LSP: [g]oto t[y]pe definition
  • <leader>la - [L]SP: code [a]ctions
  • <leader>lh - [L]SP: toggle inlay [h]ints
  • <leader>lr - [L]SP: [r]ename
  • <leader>ls - [L]SP: document [s]ymbols
  • <leader>lS - [L]SP: workspace [S]ymbols
  • <C-s> - [L]SP: [s]ignature help

neo-tree.nvim plugin

  • \ - NeoTree reveal

telescope.nvim plugin

  • <leader><leader> - find existing buffers
  • <leader>/ - fuzzily search in current buffer
  • <leader>s. - [s]earch recent files (. for repeat)
  • <leader>sc - [s]earch [c]olor scheme
  • <leader>sd - [s]earch [d]iagnostics
  • <leader>sf - [s]earch [f]iles
  • <leader>sg - [s]earch by [g]rep
  • <leader>sh - [s]earch [h]elp
  • <leader>sp - [s]earch in ~/workspace [p]rojects
  • <leader>sr - [s]earch [r]esume
  • <leader>sR - [s]earch [R]egisters
  • <leader>ss - [s]earch [s]elect Telescope
  • <leader>st - [s]earch [t]odo
  • <leader>sw - [s]earch current [w]ord

todo-comments plugin

  • ]t and [t - next/previous [t]odo in the buffer

nvim-jdtls plugin

  • <leader>jo - [j]ava: [o]rganize imports
  • <leader>jv - [j]ava: extract [v]ariable
  • <leader>jc - [j]ava: extract [c]onstant
  • <leader>jm - [j]ava: extract [m]ethod

neotest plugin

  • <leader>tl - [t]est: run [l]ast test
  • <leader>tn - [t]est: run [n]earest
  • <leader>to - [t]est: show [o]utput
  • <leader>tO - [t]est: toggle [O]utput panel
  • <leader>ts - [t]est: toggle [s]ummary
  • <leader>tS - [t]est: [S]top
  • <leader>tt - [t]est: run [t]est file
  • <leader>tT - [t]est: run all [T]est files

About

Neovim configuration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages