Skip to content

Instantly share code, notes, and snippets.

@SamuelDavis
Last active January 2, 2024 16:11
Show Gist options
  • Save SamuelDavis/2585ac8abe2c3d6acdb11ef763d09bf2 to your computer and use it in GitHub Desktop.
Save SamuelDavis/2585ac8abe2c3d6acdb11ef763d09bf2 to your computer and use it in GitHub Desktop.
set ideajoin
set ignorecase
set smartcase
let mapleader = ","
let localmapleader = ","
map <leader>cr <Action>(RenameElement)
map <leader>ca <Action>(ShowIntentionActions)
map <leader>/ <Action>(CommentByLineComment)
map <leader>* <Action>(CommentByBlockComment)
# Pretty
map <leader>pp <Action>(ReformatWithPrettierAction)
map <leader>pe <Action>(Javascript.Linters.EsLint.Fix)
map <leader>pi <Action>(OptimizeImports)
# Diagnostics
map <leader>do <Action>(ShowErrorDescription)
# Hover
map <leader>hd <Action>(QuickJavaDoc)
map <leader>ht <Action>(ExpressionTypeInfo)
# Find
map <leader>ff <Action>(GotoFile)
map <leader>fd <Action>(GotoDeclaration)
map <leader>fg <Action>(FindInPath)
map <leader>fr <Action>(FindUsages)
map <leader>fs <Action>(GotoSymbol)
map <C-n> <Action>(NextOccurence)
map <C-p> <Action>(PreviousOccurence)
# Copy + Paste
map <leader>sy <Action>(EditorCopy)
map <leader>sp <Action>(EditorPaste)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment