chore(cursor): further tweaks to keybindings and settings

This commit is contained in:
Jim Myhrberg
2025-02-14 21:38:52 +00:00
parent 62f5251774
commit e6d81a0903
2 changed files with 99 additions and 15 deletions

View File

@@ -22,6 +22,15 @@
},
//
// ===========================================================================
// Window
// ===========================================================================
//
{
"key": "cmd+0",
"command": "workbench.action.zoomReset"
},
//
// ===========================================================================
// Save
// ===========================================================================
//
@@ -284,15 +293,6 @@
},
//
// ===========================================================================
// Completion
// ===========================================================================
//
{
"key": "alt+shift+f",
"command": "editor.action.inlineSuggest.acceptNextWord"
},
//
// ===========================================================================
// Text selection
// ===========================================================================
//
@@ -348,8 +348,32 @@
},
//
// ===========================================================================
// Completion
// ===========================================================================
//
{
"key": "alt+shift+f",
"command": "editor.action.inlineSuggest.acceptNextWord"
},
//
// ===========================================================================
// Documentation
// ===========================================================================
//
{ // Show documentation for symbol at cursor.
"key": "ctrl+c d",
"command": "editor.action.showHover"
},
{ // Show documentation for symbol at cursor.
"key": "ctrl+c ctrl+d",
"command": "editor.action.triggerParameterHints"
},
//
// ===========================================================================
// edamagit
// ===========================================================================
// Extension URL:
// - https://marketplace.cursorapi.com/items?itemName=kahole.magit
//
{ // Open magit status.
"key": "ctrl+x g",
@@ -363,6 +387,8 @@
// ===========================================================================
// Project Manager
// ===========================================================================
// Extension URL:
// - https://marketplace.cursorapi.com/items?itemName=alefragnani.project-manager
//
{ // List projects.
"key": "ctrl+z ctrl+s",
@@ -376,6 +402,8 @@
// ===========================================================================
// dired
// ===========================================================================
// Extension URL:
// - https://marketplace.cursorapi.com/items?itemName=rrudi.vscode-dired
//
{ // Open dired.
"key": "ctrl+x ctrl+j",
@@ -411,6 +439,8 @@
// ===========================================================================
// swiper
// ===========================================================================
// Extension URL:
// - https://marketplace.cursorapi.com/items?itemName=wenhoujx.swiper
//
{ // Swiper word at cursor.
"key": "alt+r",
@@ -420,6 +450,8 @@
// ===========================================================================
// Makefile task runner
// ===========================================================================
// Extension URL:
// - https://marketplace.cursorapi.com/items?itemName=carlos-algms.make-task-provider
//
{ // Run target.
"key": "ctrl+c enter",

View File

@@ -16,7 +16,7 @@
"editor.fontSize": 12,
"editor.renderWhitespace": "trailing",
"editor.formatOnSave": true,
"editor.formatOnPaste": false,
"editor.formatOnPaste": true,
"editor.rulers": [
80,
100,
@@ -27,6 +27,12 @@
"editor.minimap.enabled": true,
//
// ===========================================================================
// Git
// ===========================================================================
//
"git.blame.editorDecoration.enabled": true,
//
// ===========================================================================
// Files
// ===========================================================================
//
@@ -61,6 +67,8 @@
// ===========================================================================
// Awesome Emacs Keybindings
// ===========================================================================
// Extension URL:
// - https://marketplace.cursorapi.com/items?itemName=tuttieee.emacs-mcx
//
"emacs-mcx.emacsLikeTab": true,
"emacs-mcx.killRingMax": 120,
@@ -69,6 +77,8 @@
// ===========================================================================
// File Browser
// ===========================================================================
// Extension URL:
// - https://marketplace.cursorapi.com/items?itemName=bodil.file-browser
//
"file-browser.hideDotfiles": false,
"file-browser.labelIgnoredFiles": true,
@@ -76,6 +86,8 @@
// ===========================================================================
// Project Manager
// ===========================================================================
// Extension URL:
// - https://marketplace.cursorapi.com/items?itemName=alefragnani.project-manager
//
"projectManager.git.baseFolders": [
"~/Projects",
@@ -132,11 +144,22 @@
// ===========================================================================
// Go
// ===========================================================================
// Extensions:
// - https://marketplace.cursorapi.com/items?itemName=golang.go
// - https://marketplace.cursorapi.com/items?itemName=gofenix.go-lines
//
"go.formatTool": "gofumpt",
"go.inlayHints.constantValues": true,
"go.lintTool": "golangci-lint",
"go-lines.lineLength": 120,
"go.formatTool": "gofumpt",
"go.lintOnSave": "workspace",
"go.lintTool": "golangci-lint",
"go.useLanguageServer": true,
"go.inlayHints.constantValues": true,
"gopls": {
"ui.diagnostic.analyses": {
"shadow": true
},
"ui.diagnostic.staticcheck": true,
},
//
// ===========================================================================
// JSON
@@ -150,6 +173,9 @@
// ===========================================================================
// Ruby
// ===========================================================================
// Extensions:
// - https://marketplace.cursorapi.com/items?itemName=Shopify.ruby-extensions-pack
// - https://marketplace.cursorapi.com/items?itemName=connorshea.vscode-ruby-test-adapter
//
"[ruby]": {
"editor.defaultFormatter": "Shopify.ruby-lsp",
@@ -160,8 +186,11 @@
},
//
// ===========================================================================
// YAML (by RedHat)
// YAML
// ===========================================================================
// Extensions:
// - https://marketplace.cursorapi.com/items?itemName=redhat.vscode-yaml
// - https://marketplace.cursorapi.com/items?itemName=arahata.linter-actionlint
//
"redhat.telemetry.enabled": false,
//
@@ -169,5 +198,28 @@
// Makefile
// ===========================================================================
//
"makefile.configureOnOpen": true
"makefile.configureOnOpen": false,
//
// ===========================================================================
// vscode-color-picker
// ===========================================================================
// Extension URL:
// - https://marketplace.cursorapi.com/items?itemName=AntiAntiSepticeye.vscode-color-picker
//
"vscode-color-picker.languages": [
"css",
"go",
"javascript",
"less",
"postcss",
"python",
"ruby",
"sass",
"scss",
"sss",
"stylus",
"svg",
"typescript",
"xml"
],
}