Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
amirrezaask committed Oct 4, 2024
1 parent a8b3192 commit 8a3fa31
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 20 deletions.
3 changes: 1 addition & 2 deletions emacs/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@
(setq font-families (font-family-list))
(require 'cl-lib)
(cl-loop for font in '(
"MonoLisa"
"Consolas"
"Liberation Mono"
"Menlo"
Expand Down Expand Up @@ -239,7 +238,7 @@

(setq custom-safe-themes t)
(add-to-list 'custom-theme-load-path (expand-file-name "themes" user-emacs-directory))
(load-theme 'handmadehero)
(load-theme 'witness)

(setq-default c-default-style "linux" c-basic-offset 4)

Expand Down
2 changes: 1 addition & 1 deletion starship.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ add_newline = true

[character]

success_symbol = '[➡️](green)'
success_symbol = '[;](green)'

[package]

Expand Down
113 changes: 96 additions & 17 deletions vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
{
{
"editor.fontFamily": "MonoLisa, Dank Mono, Operator Mono Book, Fira Code, Menlo, Consolas",
"editor.fontSize": 14,
"terminal.integrated.fontSize": 15,

"editor.lineHeight": 22, // increase vertical space between lines for more code readability.

// Startup options
"workbench.startupEditor": "none", // Start with an empty screen
"window.restoreWindows": "none", // do not reopen everything when I launch.
"workbench.settings.editor": "json", // Who uses that shitty slow UI ?

"terminal.integrated.macOptionIsMeta": true,
"security.workspace.trust.untrustedFiles": "open",

"security.workspace.trust.untrustedFiles": "open",
// Cursor settings
"editor.cursorBlinking": "phase",
"editor.cursorStyle": "block",

"files.simpleDialog.enable": true, // Use vscode ui to open files instead of OS native one ( weird but vscode one is much faster).

"workbench.editor.editorActionsLocation": "titleBar",
"editor.wordWrap": "on", // Wrap long lines.
"files.insertFinalNewline": true,
Expand All @@ -43,34 +37,32 @@
"editor.autoClosingComments": "never", // No fucking auto pairs
"diffEditor.renderSideBySide": false,
"workbench.activityBar.location": "bottom",

"editor.multiCursorModifier": "ctrlCmd", // Sublime text habbits

// No confirmation for explorer actions.
"explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false,
"explorer.confirmPasteNative": false,

// Titlebar
"workbench.editor.showTabs": "none",
"window.titleBarStyle": "custom",

// Disable Autocomplete
// "editor.quickSuggestions": {
// "other": false,
// "comments": false,
// "strings": false
// },
// "editor.suggestOnTriggerCharacters": false,

"editor.parameterHints.enabled": false,
"editor.semanticHighlighting.enabled": false,
"editor.occurrencesHighlight": "off",
"problems.visibility": true, // Disable annoying squiggles throughout the editor.

// Golang
"[go]": { "editor.formatOnSave": true },
"go.addTags": { "options": "" },
"[go]": {
"editor.formatOnSave": true
},
"go.addTags": {
"options": ""
},
"go.toolsManagement.autoUpdate": true,
//Git
"git.confirmSync": false,
Expand All @@ -86,5 +78,92 @@
}
},
"extensions.ignoreRecommendations": true,
"workbench.colorTheme": "Kanagawa"
"workbench.colorTheme": "Kanagawa",
// Vim
"vim.leader": " ",
"vim.useSystemClipboard": true,
"vim.normalModeKeyBindings": [
{ // File Switcher
"before": [
"<leader>",
"<leader>"
],
"commands": [
"workbench.action.quickOpen"
]
}, // File Switcher
{
"before": [
"<leader>",
"p"
],
"commands": [
"workbench.action.quickOpen"
]
},
{ // References
"before": [
"g",
"r"
],
"commands": [
"editor.action.goToReferences"
]
},
{ // Hover
"before": [
"K"
],
"commands": [
"editor.action.showHover"
]
},
// Diagnostics
{
"before": [
"[",
"["
],
"commands": [
"editor.action.marker.prev"
]
},
{
"before": [
"]",
"]"
],
"commands": [
"editor.action.marker.next"
]
},
{ // Code Actions
"before": [
"C"
],
"commands": [
"editor.action.quickFix"
]
}
],
"vim.insertModeKeyBindings": [
{
"before": [
"j",
"k"
],
"after": [
"<esc>"
]
},
{
"before": [
"k",
"j"
],
"after": [
"<esc>"
]
}
]
}

0 comments on commit 8a3fa31

Please sign in to comment.