Giter VIP home page Giter VIP logo

nvimrc's Introduction

basic neovim setup

largely copied from the primeagen's setup / yt video

requirements

usage

leader is mapped to " " (aka spacebar) written with a "." to connect (which is not typed)

file navigation

  • leader.pv open netrw directory manager
  • leader.pf fuzzy find a file and jump to it
  • C-p fuzzy find a file in the git repo and jump to it
  • leader.ps grep for a string in wd and jump to it with preview

buffer navigation

VISUAL MODE with a highlighted selection

  • J move selection down

  • K move selection up

  • C-u jump up half a page

  • C-d jump down half a page

editing

  • leader.u open undotree

  • leader.p paste the register over highlighted text without editing register

  • leader.y yank to system clipboard

  • leader.d delete to void, leaving yank register in place

  • leader.f autoformat code

  • leader.x chmod+x the current file

search / replace

  • leader.s replace current word globally in buffer

git

  • leader.gs open fugitive for git access (TODO usage)

lsp / autocompletion

  • C-space begin completion

  • C-n next completion

  • C-p previous completion

  • C-y accept completion

  • gd goto definition

TODO usage

  • K
  • leader.vws
  • leader.vd
  • [d
  • ]d
  • leader.vca
  • leader.vrr
  • leader.vrn
  • C-h

conjure

localleader is "," (aka comma), abbr as ll.

Evaluation

  • ll.eb evaluate the whole file

  • ll.ee evaluate inner expression under cursor

  • ll.er evaluate outermost expression from cursor

  • ll.e! evaluate form (ee) & replace it with the result

  • ll.E evaluate the visual selection

  • ll.E_ evaluate from the cursor with a motion (eg. Eiw)

  • ll.ew inspect contents of a variable (eg. string, table)

Marked Evaluation

  • mf mark a form (ee) for continued evaluation
  • ll.emf evaluate the marked form regardless of cursor

Log

  • ll.lv open log in a vertical split
  • ll.lq close all open log windows
  • ll.lR hard reset all logs in case of issues

Fennel:REPL

  • ll.cs start the fennel repl
  • ll.cS stop the fennel repl
  • ll.eF reload current file at runtime using ,reload ...

system level

  • :Mason install new lang-servers

nvimrc's People

Contributors

trentgill avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.