# Node5 - nvim config ## Run ``` nix run git+https://git.node5.net/nix/nvim ``` ## Install Add this to your NixOS flake inputs ```nix node5-nvim.url = "git+https://git.node5.net/nix/nvim"; ``` And this to `environment.systemPackages` ```nix inputs.node5-nvim.packages.x86_64-linux.default ``` --- Print current config: `nvf-print-config nvim | bat --language lua` ## Handy shortcuts - leader is space - `ld` show linter error / warning list at bottom - `/` find text in files - grep text in files - `.` find files - grep files names - `CTRL+T` terminal - `g` show git diff pop up ### Code - `ln` rename variable - `CTRL+Left click` Go to definition - `lgr` find all references ## Handy commands - `:StripWhitespace` - remove unwanted trailing whitespace - `:Noice` command to show a full message history ## TODO - [ ] TODO Markdown preview new window - [ ] TODO Smoothscrolling - [ ] TODO Undo tree