diff --git a/config/Code/User/keybindings.json b/config/Code/User/keybindings.json deleted file mode 100644 index 9d04af3b..00000000 --- a/config/Code/User/keybindings.json +++ /dev/null @@ -1,274 +0,0 @@ -[ - { - "key": "ctrl+shift+r", - "command": "workbench.action.reloadWindow", - "when": "editorTextFocus" - }, - { - "key": "ctrl+i", - "command": "workbench.action.terminal.sendSequence", - "when": "resourceExtname == .py", - "args": { - "text": "python \"${file}\" < ./i\n" - } - }, - { - "key": "f5", - "command": "python.execInTerminal", - "when": "resourceExtname == .py", - }, - { - "key": "f5", - "command": "workbench.action.terminal.sendSequence", - "when": "resourceExtname == .dart", - "args": { - "text": "dart \"${file}\"\n" - } - }, - { - "key": "f5", - "command": "workbench.action.terminal.sendSequence", - "when": "resourceExtname == .js", - "args": { - "text": "node \"${file}\"\n" - } - }, - { - "key": "f5", - "command": "workbench.action.terminal.sendSequence", - "when": "resourceExtname == .java", - "args": { - "text": "java \"${file}\"\n" - } - }, - { - "key": "f5", - "command": "workbench.action.terminal.sendSequence", - "when": "resourceExtname == .sh", - "args": { - "text": "\"${file}\"\n" - } - }, - { - "key": "f5", - "command": "workbench.action.terminal.sendSequence", - "when": "resourceExtname == .cpp", - "args": { - "text": "g++ -g \"${file}\" -o \"${fileDirname}/${fileBasenameNoExtension}\" && \"${fileDirname}/${fileBasenameNoExtension}\"\n" - } - }, - { - "key": "f5", - "command": "workbench.action.terminal.sendSequence", - "when": "resourceExtname == .c", - "args": { - "text": "gcc -g \"${file}\" -o \"${fileDirname}/${fileBasenameNoExtension}\" && \"${fileDirname}/${fileBasenameNoExtension}\"\n" - } - }, - { - "key": "f5", - "command": "workbench.action.terminal.sendSequence", - "when": "resourceExtname == .asm", - "args": { - "text": "nasm -f elf64 \"${file}\" && ld -o \"${fileDirname}/${fileBasenameNoExtension}\" \"${fileDirname}/${fileBasenameNoExtension}.o\" && \"${fileDirname}/${fileBasenameNoExtension}\"\n" - } - }, - { - "key": "ctrl+i", - "command": "workbench.action.terminal.sendSequence", - "when": "resourceExtname == .cpp", - "args": { - "text": "g++ -g \"${file}\" -o \"${fileDirname}/${fileBasenameNoExtension}\" && \"${fileDirname}/${fileBasenameNoExtension}\" < ./i\n" - } - }, - { - "key": "ctrl+g", - "command": "workbench.action.terminal.sendSequence", - "when": "resourceExtname == .cpp", - "args": { - "text": "g++ -g \"${file}\" -o \"${fileDirname}/${fileBasenameNoExtension}\" -lgraph -lGL -lGLU -lglut && \"${fileDirname}/${fileBasenameNoExtension}\" 2>/dev/null\n" - } - }, - // { - // "key": "f5", - // "command": "workbench.action.tasks.runTask", - // "when": "resourceExtname == .cpp", - // "args": "Build and Run C++" - // }, - { - "key": "shift+f5", - "command": "workbench.action.terminal.sendSequence", - "when": "resourceExtname == .cpp", - "args": { - "text": "g++ -g \"${fileDirname}/*.cpp\" -o \"${fileDirname}/${fileBasenameNoExtension}\" && \"${fileDirname}/${fileBasenameNoExtension}\"\n" - } - }, - // { - // "key": "shift+f5", - // "command": "workbench.action.tasks.runTask", - // "when": "resourceExtname == .cpp", - // "args": "Build and Run C++ (Multiple cpp files)" - // }, - { - "key": "f4", - "command": "workbench.action.debug.continue", - "when": "inDebugMode" - }, - { - "key": "f4", - "command": "workbench.action.debug.start", - "when": "!inDebugMode" - }, - { - "key": "f4", - "command": "workbench.action.debug.start", - "when": "debuggersAvailable && !inDebugMode" - }, - { - "key": "f5", - "command": "-workbench.action.debug.continue", - "when": "inDebugMode" - }, - { - "key": "f5", - "command": "-workbench.action.debug.start", - "when": "!inDebugMode" - }, - { - "key": "f5", - "command": "-workbench.action.debug.start", - "when": "debuggersAvailable && !inDebugMode" - }, - { - "key": "shift+f4", - "command": "workbench.action.debug.stop", - "when": "inDebugMode" - }, - { - "key": "shift+f5", - "command": "-workbench.action.debug.stop", - "when": "inDebugMode" - }, - { - "key": "ctrl+v", - "command": "workbench.action.terminal.paste", - "when": "terminalFocus && terminalProcessSupported" - }, - { - "key": "ctrl+shift+v", - "command": "-workbench.action.terminal.paste", - "when": "terminalFocus && terminalProcessSupported" - }, - { - "key": "ctrl+alt+up", - "command": "editor.action.copyLinesUpAction", - "when": "editorTextFocus && !editorReadonly" - }, - { - "key": "ctrl+alt+down", - "command": "editor.action.copyLinesDownAction", - "when": "editorTextFocus && !editorReadonly" - }, - { - "key": "ctrl+shift+alt+up", - "command": "-editor.action.copyLinesUpAction", - "when": "editorTextFocus && !editorReadonly" - }, - { - "key": "ctrl+shift+alt+down", - "command": "-editor.action.copyLinesDownAction", - "when": "editorTextFocus && !editorReadonly" - }, - { - "key": "ctrl+,", - "command": "-workbench.action.openSettings" - }, - { - "key": "ctrl+,", - "command": "workbench.action.openSettingsJson" - }, - { - "key": "ctrl+i", - "command": "-editor.action.triggerSuggest", - "when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly" - }, - { - "key": "ctrl+c", - "command": "workbench.action.terminal.copySelection", - "when": "terminalFocus && terminalProcessSupported && terminalTextSelected && terminalTextSelected" - }, - { - "key": "ctrl+shift+c", - "command": "-workbench.action.terminal.copySelection", - "when": "terminalFocus && terminalProcessSupported && terminalTextSelected && terminalTextSelected" - }, - { - "key": "ctrl+k", - "command": "workbench.action.terminal.kill", - "when": "terminalIsOpen && terminalFocus" - }, - { - "key": "delete", - "command": "-workbench.action.terminal.killInstance", - "when": "terminalIsOpen && terminalTabsFocus || terminalProcessSupported && terminalTabsFocus" - }, - { - "key": "ctrl+shift+i", - "command": "-editor.action.formatDocument.none", - "when": "editorTextFocus && !editorHasDocumentFormattingProvider && !editorReadonly" - }, - { - "key": "ctrl+shift+i", - "command": "-notebook.formatCell", - "when": "editorHasDocumentFormattingProvider && editorTextFocus && inCompositeEditor && notebookEditable && !editorReadonly && activeEditor == 'workbench.editor.notebook'" - }, - { - "key": "ctrl+shift+i", - "command": "editor.action.formatDocument", - "when": "editorTextFocus" - }, - { - "key": "ctrl+shift+i", - "command": "-editor.action.formatDocument", - "when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor" - }, - { - "key": "ctrl+shift+i", - "command": "workbench.action.toggleDevTools", - "when": "!editorTextFocus" - }, - { - "key": "ctrl+shift+i", - "command": "-workbench.action.toggleDevTools", - "when": "isDevelopment" - }, - { - "key": "ctrl+t", - "command": "-workbench.action.showAllSymbols" - }, - { - "key": "ctrl+t", - "command": "workbench.action.files.newUntitledFile" - }, - { - "key": "ctrl+n", - "command": "-workbench.action.files.newUntitledFile" - }, - { - "key": "ctrl+shift+m", - "command": "github.cweijan.mysql.focus" - }, - { - "key": "ctrl+shift+m", - "command": "-workbench.actions.view.problems", - "when": "workbench.panel.markers.view.active" - }, - { - "key": "ctrl+shift+0", - "command": "workbench.action.zoomReset" - }, - { - "key": "ctrl+numpad0", - "command": "-workbench.action.zoomReset" - } -] diff --git a/config/Code/User/settings.json b/config/Code/User/settings.json deleted file mode 100644 index 3fcd4610..00000000 --- a/config/Code/User/settings.json +++ /dev/null @@ -1,740 +0,0 @@ -{ - "workbench.colorCustomizations": { - "[Chromodynamics]": { - "terminal.background": "#060606", - "terminal.foreground": "#e0e0e0", - "terminal.selectionBackground": "#555555", - "titleBar.activeBackground": "#020202", - "titleBar.activeForeground": "#e0e0e0", - "titleBar.inactiveBackground": "#020202", - "titleBar.inactiveForeground": "#e0e0e0", - "tab.inactiveBackground": "#0b0b0b", - "editor.background": "#060606", - "editor.findMatchBorder": "#0c0c0d", - "editor.findMatchHighlightBorder": "#0c0c0d", - "editor.lineHighlightBackground": "#060606", - "editor.selectionBackground": "#222222", - "editor.selectionHighlightBackground": "#e4dddd", - "editor.selectionHighlightBorder": "#0c0c0d", - "editorGroupHeader.tabsBackground": "#0b0b0b", - "editorGutter.background": "#000000", - "sideBar.background": "#060606", - "sideBarSectionHeader.background": "#0b0b0b", - "statusBar.background": "#060606" - }, - "[Sweet Dracula]": { - "editorGroupHeader.tabsBackground": "#161925" - } - }, - "editor.tokenColorCustomizations": { - "[Chromodynamics]": { - "textMateRules": [ - { - "scope": [ - "constant.language.python", - "variable.parameter.function.language.special.self.python" - ], - "settings": { - "foreground": "#66D9EF" - } - }, - { - "scope": [ - "entity.name.function.operator", - "keyword.operator" - ], - "settings": { - "foreground": "#E8364F", - "fontStyle": "" - } - }, - { - "scope": [ - "punctuation.definition.template-expression.begin.js", - "punctuation.definition.template-expression.end.js" - ], - "settings": { - "foreground": "#da70d6", - "fontStyle": "italic" - } - }, - { - "scope": [ - "variable.other.readwrite.js" - ], - "settings": { - "foreground": "#c6c6c6", - "fontStyle": "" - } - } - ] - }, - "textMateRules": [ - { - "scope": [ - "entity.name.type.class", - "storage.type.class", - "storage.modifier", - "storage.type", - "constant", - "comment", - "keyword", - "invalid" - ], - "settings": { - "fontStyle": "italic" - } - } - ] - }, - // Window Settings - "window.commandCenter": false, - "window.menuBarVisibility": "toggle", - "window.newWindowDimensions": "maximized", - "window.restoreWindows": "preserve", - "window.title": "${activeEditorShort}${separator}${rootName}", - "window.titleBarStyle": "native", - "window.titleSeparator": " γƒ»ξŠ† ・", - "workbench.editor.enablePreviewFromQuickOpen": false, - "workbench.editor.highlightModifiedTabs": true, - "workbench.editor.restoreViewState": true, - "workbench.editor.sharedViewState": false, - "workbench.editor.showTabs": true, - "workbench.editor.tabCloseButton": "right", - "workbench.editor.tabSizing": "shrink", - "workbench.editor.untitled.hint": "hidden", - "workbench.iconTheme": "sweet-vscode-icons", - "workbench.layoutControl.type": "menu", - "workbench.list.smoothScrolling": true, - "workbench.panel.defaultLocation": "right", - "workbench.startupEditor": "none", - "workbench.statusBar.visible": true, - "workbench.editorAssociations": { - "*.ipynb": "jupyter-notebook" - }, - "workbench.reduceMotion": "off", - // Editor Settings - "editor.acceptSuggestionOnEnter": "smart", - "editor.autoClosingBrackets": "always", - "editor.bracketPairColorization.enabled": true, - "editor.codeActionsOnSave": { - "source.organizeImports": true - }, - "editor.colorDecorators": false, - "editor.cursorBlinking": "phase", - "editor.cursorSmoothCaretAnimation": "on", - "editor.cursorStyle": "line-thin", - "editor.detectIndentation": false, - "editor.emptySelectionClipboard": false, - "editor.fontFamily": "'Operator Mono SSm Lig Book', 'FiraCode Nerd Font', 'Hack Nerd Font Mono', 'codicon'", - "editor.fontVariations": true, - "editor.fontLigatures": "'ss01', 'ss02', 'ss03', 'ss04', 'ss05', 'ss06', 'zero', 'onum'", - "editor.fontSize": 12, - "editor.fontWeight": "normal", - "editor.formatOnSave": true, - "editor.formatOnType": true, - "editor.glyphMargin": true, - "editor.guides.bracketPairs": "active", - "editor.guides.bracketPairsHorizontal": "active", - "editor.guides.highlightActiveBracketPair": true, - "editor.hover.above": false, - "editor.inlayHints.enabled": "on", - "editor.inlineSuggest.enabled": true, - "editor.insertSpaces": true, - "editor.linkedEditing": true, - "editor.matchBrackets": "never", - "editor.maxTokenizationLineLength": 99999999, - "editor.minimap.enabled": false, - "editor.mouseWheelScrollSensitivity": 1.5, - "editor.occurrencesHighlight": false, - "editor.renderControlCharacters": true, - "editor.renderFinalNewline": "on", - "editor.renderLineHighlight": "gutter", - "editor.renderWhitespace": "none", - "editor.scrollbar.horizontal": "auto", - "editor.scrollbar.vertical": "auto", - "editor.selectionHighlight": true, - "editor.smoothScrolling": true, - "editor.stickyScroll.enabled": true, - "editor.stickyScroll.maxLineCount": 5, - "editor.stickyTabStops": false, - "editor.suggestLineHeight": 28, - "editor.suggestSelection": "first", - "editor.suggest.insertMode": "replace", - "editor.suggest.preview": true, - "editor.suggest.snippetsPreventQuickSuggestions": false, - "editor.tabCompletion": "on", - "editor.tabSize": 4, - "editor.wordBasedSuggestions": true, - "editor.wordBasedSuggestionsMode": "matchingDocuments", - "editor.wordWrap": "on", - "editor.quickSuggestions": { - "other": "on", - "comments": "on", - "strings": "on" - }, - // Emmet Settings - "emmet.excludeLanguages": [], - "emmet.includeLanguages": { - "javascript": "javascriptreact", - "markdown": "html", - "vue-html": "html" - }, - // Explorer Settings - "explorer.compactFolders": false, - "explorer.confirmDelete": false, - "explorer.confirmDragAndDrop": false, - // Files Explorer - "problems.decorations.enabled": false, - // Customize UI - // "customizeUI.activityBar": "bottom", - // "customizeUI.activityBarHideSettings": true, - // "customizeUI.listRowHeight": 20, - // "customizeUI.font.monospace": "CaskaydiaCove Nerd Font", - // "customizeUI.font.regular": "CaskaydiaCove Nerd Font", - // "customizeUI.fontSizeMap": { - // "13px": "12px", - // "monospace": "12px", - // "tab-title": "12px", - // "window-title": "12.5px" - // }, - // "customizeUI.titleBar": "inline", - // "customizeUI.stylesheet": { - // ":root,::after,::before": "--tab-height: 25px;--tab-radius: 8px;--ui-radius: 6px;--base-color: #bd93f9;--gradient-one: #c50ed2;--gradient-two: #8500f7;--side-pane-color: var(--vscode-editor-background);--focus-border: #3f4f81;--sash-size: 2px !important;--sash-hover-size: 2px !important;", - // ".editor-container": "-webkit-font-smoothing: antialiased;", - // ".monaco-workbench .part.editor > .content > .watermark": "display: none !important;", - // ".monaco-workbench .part.titlebar .window-controls-container .layout-dropdown-container": "margin-left: auto !important;", - // ".monaco-workbench .part.titlebar > .window-controls-container": "width: unset !important;", - // ".monaco-workbench .part.titlebar > .window-controls-container > .window-icon": "width: 30px !important;", - // ".monaco-workbench .part.titlebar > .titlebar-container .window-appicon > .home-bar-icon-badge, .monaco-workbench .part.titlebar > .titlebar-container > .window-appicon:not(.codicon)": "background-image: url(./vsc/vsc.svg) !important;", - // ".monaco-workbench .part.editor > .content .editor-group-container.empty .editor-group-letterpress": "background-image: url(./vsc/vsc-back.svg) !important;", - // ".monaco-workbench .part.editor.has-watermark > .content.empty .editor-group-container > .editor-group-letterpress": "background-position-y: 50% !important;", - // ".monaco-sash.hover:before, .monaco-sash.active:before": "background: linear-gradient(to bottom, var(--gradient-one), var(--gradient-two)) !important;", - // ".monaco-editor .squiggly-error": "background: none !important;border-bottom: 0.5px solid var(--vscode-editorError-foreground) !important;", - // ".monaco-editor .squiggly-warning": "background: none !important;border-bottom: 0.5px solid var(--vscode-editorWarning-foreground) !important;", - // ".monaco-editor .squiggly-info": "background: none !important;border-bottom: 0.5px solid var(--vscode-editorInfo-foreground) !important;", - // ".monaco-editor .squiggly-hint": "background: none !important;border-bottom: 0.5px solid var(--vscode-editorHint-foreground) !important;", - // "body.activity-bar-at-bottom .monaco-workbench .activitybar .active-item-indicator": "display: block !important;", - // ".monaco-workbench .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .action-item.checked .active-item-indicator:before": "border: 0 !important;width: 100% !important;height: 3px !important;position: absolute !important;bottom: 0 !important;left: 0 !important;top: unset !important;background-image: linear-gradient(to top, var(--gradient-one), var(--gradient-two)) !important;border-radius: 100vmax !important;", - // ".monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab > .tab-border-bottom-container, .monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab > .tab-border-top-container": "background-image: linear-gradient(to left, var(--gradient-one), var(--gradient-two)) !important;height: 3px !important;", - // ".monaco-workbench .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .badge .badge-content": "background-image: linear-gradient(90deg, var(--gradient-one), var(--gradient-two)) !important;", - // ".monaco-workbench .part.editor > .content .editor-group-container.active > .title .tabs-container > .tab.dirty > .tab-actions .action-label:not(:hover):before, .monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab.dirty > .tab-actions .action-label:not(:hover):before": "content: '' !important;", - // ".codicon-git-branch:before": "background: linear-gradient(to bottom, var(--gradient-one), var(--gradient-two)) !important;-webkit-background-clip: text !important;background-clip: text !important;color: rgba(255, 255, 255, 0.4) !important;", - // ".monaco-editor, .split-view-view .monaco-editor-background": "background: url(./vsc/pek.png) bottom right / 10% auto no-repeat scroll;", - // ".monaco-scrollable-element > .scrollbar > .slider": "border-radius: 7px !important;", - // ".monaco-scrollable-element > .scrollbar > .slider.active": "background: linear-gradient(to top, var(--gradient-one), var(--gradient-two)) !important;", - // "canvas.decorationsOverviewRuler, .monaco-scrollable-element > .scrollbar.vertical, .monaco-scrollable-element > .scrollbar.vertical > .slider": "width: 7px !important;", - // ".monaco-scrollable-element > .scrollbar.horizontal, .monaco-scrollable-element > .scrollbar.horizontal > .slider": "height: 7px !important;", - // ".monaco-scrollable-element > .scrollbar.horizontal > .slider": "width: 135px !important;", - // ".monaco-editor .monaco-hover, .monaco-editor .suggest-widget, .monaco-editor .suggest-details": "border-radius: var(--ui-radius) !important;overflow: hidden !important;box-shadow: rgb(0 0 0 / 36%) 0px 2px calc(var(--ui-radius) + 2px) !important;", - // ".pane .pane-body, .pane .pane-body .monaco-list, .pane .pane-body .monaco-list .monaco-scrollable-element, .pane .pane-body .monaco-list .monaco-scrollable-element .monaco-list-rows, .pane .pane-body .monaco-list .monaco-scrollable-element .monaco-list-rows .monaco-list-row": "overflow: visible !important;", - // ".open-editors .monaco-list .monaco-list-row": "padding-left: 0px !important;", - // ".monaco-list-row:hover, .monaco-list-row.selected, .monaco-list-row.focused": "border-radius: 0 var(--ui-radius) var(--ui-radius) 0 !important;", - // ".monaco-workbench .monaco-list:not(.element-focused):focus:before, .monaco-select-box, .monaco-select-box-dropdown-container, .monaco-select-box-dropdown-container .monaco-list-row:hover, .monaco-select-box-dropdown-container .monaco-list-row.selected, .monaco-select-box-dropdown-container .monaco-list-row.focused": "border-radius: var(--ui-radius) !important;", - // ".monaco-list-row.selected::before, .monaco-list-row.selected::after": "--ui-radius: 6px;content: '' !important;display: block !important;position: absolute !important;width: var(--ui-radius) !important;height: var(--ui-radius) !important;left: 0 !important;pointer-events: none !important;", - // ".monaco-list-row.selected::before": "top: calc(0px - var(--ui-radius)) !important;background: radial-gradient(circle at 100% 0%, transparent 70.71%, var(--side-pane-color) 29.289%) no-repeat;background-position: 100% 0%;", - // ".monaco-list-row.selected::after": "bottom: calc(0px - var(--ui-radius)) !important;background: radial-gradient(circle at 100% 100%, transparent 70.71%, var(--side-pane-color) 29.289%) no-repeat;background-position: 100% 100%;", - // ".monaco-button.monaco-text-button": "border-radius: var(--ui-radius) !important;", - // ".monaco-editor .cursors-layer.cursor-smooth-caret-animation > .cursor": "transition: all 100ms ease-out;", - // ".tab:first-child": "margin-left: var(--tab-radius) !important;", - // ".tab:last-child": "margin-right: var(--tab-radius) !important;", - // ".tab.active": "border-radius: var(--tab-radius) var(--tab-radius) 0 0 !important;", - // ".tab.dirty-border-top > .tab-border-top-container": "border-radius: var(--tab-radius) var(--tab-radius) 0 0 !important;", - // ".tab.active::before, .tab.active::after": "content: '' !important;display: block !important;box-sizing: border-box !important;position: absolute !important;z-index: 1;width: var(--tab-radius) !important;height: var(--tab-radius) !important;bottom: 0px !important;pointer-events: none !important;", - // ".tab.active::before": "left: calc(0px - var(--tab-radius)) !important;border-bottom-right-radius: var(--tab-radius) !important;box-shadow: 3px 3px 0 3px var(--vscode-editor-background) !important;", - // ".tab.active::after": "right: 0 !important;transform: translateX(var(--tab-radius)) !important;border-bottom-left-radius: var(--tab-radius) !important;box-shadow: -3px 3px 0 3px var(--vscode-editor-background) !important;", - // ".monaco-workbench .part.sidebar>.title>.title-label h2": "font-weight: bold !important;", - // "body.activity-bar-at-bottom div.monaco-grid-view > div > div > div.monaco-scrollable-element > div.split-view-container > div.split-view-view.visible > div > div > div.monaco-scrollable-element > div.split-view-container > div:nth-child(1) > div > div > div.monaco-scrollable-element > div.split-view-container > div:nth-child(2)": "height: auto !important;", - // "body.activity-bar-at-bottom .monaco-workbench .part.activitybar": "border: none !important; padding: 0px 6px 6px 6px !important;margin-top: -8px !important; background-color: var(--vscode-editor-background) !important; position: relative !important; z-index: 10 !important;", - // "body.activity-bar-at-bottom .monaco-workbench .activitybar.bordered:before": "display: none !important;", - // "body.activity-bar-at-bottom .monaco-workbench .activitybar > .content": "justify-content: center !important; border-radius: 6px; width: unset !important; border: 1px solid #3f4f818c !important;", - // "body.activity-bar-at-bottom .monaco-workbench .activitybar>.content>.composite-bar": "margin-bottom: unset !important;", - // "body.activity-bar-at-bottom .monaco-action-bar .action-item.icon > .action-label": "color: var(--vscode-editor-foreground) !important;opacity: 0.4;", - // "body.activity-bar-at-bottom .monaco-action-bar .action-item.icon.checked > .action-label": "opacity: 1 !important;", - // ".monaco-workbench .part.editor .tabs-and-actions-container .window-controls-container": "display: flex;flex-grow: 0;flex-shrink: 0;text-align: center; -webkit-app-region: no-drag; height: 100%;", - // ".monaco-workbench .part.editor .tabs-and-actions-container .window-controls-container .window-icon": "width: 30px !important;height: 30px !important; display: flex; align-items: center; justify-content: center;", - // ".monaco-workbench .part.editor .tabs-and-actions-container .window-controls-container .window-icon.window-close:hover": "background-color: #FF5555", - // }, - // Terminal Settings - "terminal.integrated.altClickMovesCursor": true, - "terminal.integrated.cursorBlinking": true, - "terminal.integrated.customGlyphs": true, - "terminal.integrated.cursorStyle": "line", - "terminal.integrated.enableMultiLinePasteWarning": false, - "terminal.integrated.fontFamily": "'CaskaydiaCove Nerd Font', 'FiraCode Nerd Font', 'Hack Nerd Font Mono'", - "terminal.integrated.fontSize": 13, - "terminal.integrated.gpuAcceleration": "auto", - "terminal.integrated.scrollback": 200000, - "terminal.integrated.smoothScrolling": true, - "terminal.integrated.tabs.enabled": false, - "terminal.integrated.tabs.enableAnimation": true, - "terminal.integrated.profiles.linux": { - "zsh": { - "path": "/usr/bin/zsh" - } - }, - "terminal.integrated.shellIntegration.enabled": false, - "terminal.integrated.shellIntegration.decorationsEnabled": "never", - // Language Settings - "[python]": { - "editor.semanticHighlighting.enabled": false - }, - "python.analysis.completeFunctionParens": true, - "python.analysis.typeCheckingMode": "off", - "python.formatting.provider": "black", - "python.formatting.blackArgs": [ - "--line-length", - "120" - ], - "python.languageServer": "Pylance", - "python.linting.ignorePatterns": [ - ".vscode/*.py", - "**/site-packages/**/*.py", - ".git" - ], - "python.linting.enabled": true, - "python.linting.pylintEnabled": false, - "python.linting.pylintArgs": [ - "--rcfile", - "${env:HOME}/.pylintrc" - // "--load-plugins=pylint_django" - ], - "ruff.args": [ - "--config=~/pyproject.toml" - ], - "[cpp]": { - "editor.semanticHighlighting.enabled": false - }, - "C_Cpp.default.includePath": [ - "${workspaceFolder}/**", - "/usr/include", - "/usr/local/include", - "/usr/include/c++/11.1.0", - "/opt/cuda/include/" - ], - "C_Cpp.default.defines": [ - "${default}" - ], - "C_Cpp.default.compilerPath": "/usr/bin/g++", - "C_Cpp.default.cppStandard": "c++20", - "C_Cpp.default.cStandard": "c17", - "C_Cpp.default.intelliSenseMode": "gcc-x64", - "C_Cpp.default.compilerArgs": [ - "-g" - ], - "launch": { - "version": "0.2.0", - "configurations": [ - { - "name": "(gdb) Launch", - "type": "cppdbg", - "request": "launch", - "program": "${fileDirname}/${fileBasenameNoExtension}", - "args": [], - "stopAtEntry": false, - "cwd": "${workspaceFolder}", - "environment": [], - "externalConsole": false, - "MIMode": "gdb", - "miDebuggerPath": "/usr/bin/gdb", - "preLaunchTask": "Build", - "setupCommands": [ - { - "description": "Enable pretty-printing for gdb", - "text": "-enable-pretty-printing", - "ignoreFailures": true - } - ] - } - ] - }, - "tasks": { - "version": "2.0.0", - "tasks": [ - { - "label": "Build", - "type": "shell", - "command": "g++ -g \"${file}\" -o \"${fileDirname}/${fileBasenameNoExtension}\"", - "problemMatcher": [ - "$gcc" - ], - "group": { - "kind": "build", - "isDefault": true - } - }, - { - "label": "Build (Multiple cpp files)", - "type": "shell", - "command": "g++ -g \"${fileDirname}/*.cpp\" -o \"${fileDirname}/${fileBasenameNoExtension}\"", - "problemMatcher": [ - "$gcc" - ], - "group": { - "kind": "build", - "isDefault": true - } - } - ] - }, - "C_Cpp.autocompleteAddParentheses": true, - "C_Cpp.codeFolding": "enabled", - "C_Cpp.clang_format_fallbackStyle": "{ BasedOnStyle: Google, IndentWidth: 4, ColumnLimit: 100}", - "C_Cpp.inlayHints.autoDeclarationTypes.enabled": true, - "C_Cpp.inlayHints.autoDeclarationTypes.showOnLeft": true, - "C_Cpp.inlayHints.parameterNames.enabled": true, - "C_Cpp.inlayHints.parameterNames.hideLeadingUnderscores": true, - "C_Cpp.inlayHints.parameterNames.suppressWhenArgumentContainsName": true, - "C_Cpp.inlayHints.referenceOperator.enabled": true, - "C_Cpp.inlayHints.referenceOperator.showSpace": false, - "css.format.enable": true, - "css.format.newlineBetweenRules": true, - "css.format.newlineBetweenSelectors": true, - "css.format.spaceAroundSelectorSeparator": true, - "[css]": { - "editor.tabSize": 2 - }, - "java.jdt.ls.java.home": "/usr/lib/jvm/java-11-openjdk-amd64", - "java.configuration.runtimes": [ - { - "name": "JavaSE-11", - "path": "/usr/lib/jvm/java-11-openjdk-amd64" - } - ], - "java.server.launchMode": "LightWeight", - "[html]": { - "editor.tabSize": 2 - }, - "html.autoClosingTags": true, - "html.completion.attributeDefaultValue": "singlequotes", - "[dart]": { - "editor.suggestSelection": "first", - "editor.tabCompletion": "onlySnippets", - "editor.wordBasedSuggestions": false - }, - "[javascript]": { - "editor.tabSize": 2 - }, - "javascript.autoClosingTags": true, - "javascript.suggest.autoImports": true, - "javascript.suggest.completeFunctionCalls": true, - "javascript.suggest.enabled": true, - "javascript.updateImportsOnFileMove.enabled": "always", - "javascript.validate.enable": false, - "[json]": { - "editor.tabSize": 2 - }, - "json.maxItemsComputed": 100000, - "[markdown]": { - "editor.quickSuggestions": { - "other": "on", - "comments": "on", - "strings": "on" - } - }, - "[scss]": { - "editor.tabSize": 2 - }, - "[typescript]": { - "editor.tabSize": 2 - }, - "typescript.autoClosingTags": true, - "typescript.suggest.autoImports": true, - "typescript.updateImportsOnFileMove.enabled": "always", - "typescript.validate.enable": false, - "[typescriptreact]": { - "editor.tabSize": 2, - "editor.formatOnSave": false - }, - "js/ts.implicitProjectConfig.checkJs": true, - //Latex - "[latex]": { - "editor.formatOnSave": false - }, - // Empty-Indent Extension - "emptyIndent.highlightColor": "rgba(246,36,89,0.6)", - "emptyIndent.highlightIndent": false, - "emptyIndent.removeIndent": true, - // Github Co-pilot - "github.copilot.inlineSuggest.enable": true, - "github.copilot.enable": { - "*": true, - "yaml": false, - "plaintext": true, - "markdown": false - }, - // Gitlens - "gitlens.currentLine.enabled": true, - "gitlens.hovers.currentLine.over": "line", - "gitlens.codeLens.enabled": false, - "gitlens.statusBar.enabled": true, - // General Setting\ - "color-highlight.markRuler": false, - "color-highlight.markerType": "background", - "debug.onTaskErrors": "showErrors", - "debug.openDebug": "openOnDebugBreak", - "eslint.enable": true, - "extensions.ignoreRecommendations": true, - "files.autoSave": "onWindowChange", - "files.insertFinalNewline": true, - "files.restoreUndoStack": true, - "files.trimFinalNewlines": true, - "files.trimTrailingWhitespace": true, - "git.autofetch": true, - "grammarly.files.include": [ - "**/*.md", - "**/*.txt", - "**/*.tex" - ], - "latex-workshop.latex.autoBuild.cleanAndRetry.enabled": true, - "latex-workshop.latex.autoBuild.run": "never", - "latex-workshop.latex.clean.fileTypes": [ - "*/*.aux", - "*/*.synctex.gz" - ], - "latex-workshop.latex.outDir": "/tmp/Review-Paper/", - "latex-workshop.latex.recipe.default": "latexmk (lualatex)", - "latex-workshop.latex.recipes": [ - { - "name": "latexmk πŸ”ƒ", - "tools": [ - "latexmk" - ] - }, - { - "name": "latexmk (latexmkrc)", - "tools": [ - "latexmk_rconly" - ] - }, - { - "name": "latexmk (lualatex)", - "tools": [ - "lualatexmk" - ] - }, - { - "name": "latexmk (xelatex)", - "tools": [ - "xelatexmk" - ] - }, - { - "name": "pdflatex ➞ bibtex ➞ pdflatexβ€ŠΓ—β€Š2", - "tools": [ - "pdflatex", - "bibtex", - "pdflatex", - "pdflatex" - ] - }, - { - "name": "Compile Rnw files", - "tools": [ - "rnw2tex", - "latexmk" - ] - }, - { - "name": "Compile Jnw files", - "tools": [ - "jnw2tex", - "latexmk" - ] - }, - { - "name": "tectonic", - "tools": [ - "tectonic" - ] - } - ], - "latex-workshop.latex.tools": [ - { - "name": "latexmk", - "command": "latexmk", - "args": [ - "-synctex=1", - "-interaction=nonstopmode", - "-file-line-error", - "-pdf", - "-outdir=%OUTDIR%", - "%DOC%" - ], - "env": {} - }, - { - "name": "lualatexmk", - "command": "latexmk", - "args": [ - "-synctex=1", - "-interaction=nonstopmode", - "-file-line-error", - "-lualatex", - "-outdir=%OUTDIR%", - "%DOC%" - ], - "env": {} - }, - { - "name": "xelatexmk", - "command": "latexmk", - "args": [ - "-synctex=1", - "-interaction=nonstopmode", - "-file-line-error", - "-xelatex", - "-outdir=%OUTDIR%", - "%DOC%" - ], - "env": {} - }, - { - "name": "latexmk_rconly", - "command": "latexmk", - "args": [ - "%DOC%" - ], - "env": {} - }, - { - "name": "pdflatex", - "command": "pdflatex", - "args": [ - "-synctex=1", - "-interaction=nonstopmode", - "-file-line-error", - "-output-directory=%OUTDIR%", - "%DOC%" - ], - "env": {} - }, - { - "name": "bibtex", - "command": "bibtex", - "args": [ - "%DOCFILE%" - ], - "env": {} - }, - { - "name": "rnw2tex", - "command": "Rscript", - "args": [ - "-e", - "knitr::opts_knit$set(concordance = TRUE); knitr::knit('%DOCFILE_EXT%')" - ], - "env": {} - }, - { - "name": "jnw2tex", - "command": "julia", - "args": [ - "-e", - "using Weave; weave(\"%DOC_EXT%\", doctype=\"tex\")" - ], - "env": {} - }, - { - "name": "jnw2texmintex", - "command": "julia", - "args": [ - "-e", - "using Weave; weave(\"%DOC_EXT%\", doctype=\"texminted\")" - ], - "env": {} - }, - { - "name": "tectonic", - "command": "tectonic", - "args": [ - "--synctex", - "--keep-logs", - "%DOC%.tex" - ], - "env": {} - } - ], - "liveServer.settings.donotShowInfoMsg": true, - "liveServer.settings.donotVerifyTags": true, - "liveServer.settings.file": "404.html", - // "liveServer.settings.https": { - // "enable": true, - // "cert": "/home/proxzima/.ssh/cert/cert.pem", - // "key": "/home/proxzima/.ssh/cert/key.pem", - // "passphrase": "1234" - // }, - "liveServer.settings.useLocalIp": true, - "markdown.preview.markEditorSelection": true, - "markdown.preview.scrollEditorWithPreview": false, - "markdown.preview.scrollPreviewWithEditor": false, - "svgPreview.autoOpen": true, - "svgPreview.scaleToFit": true, - "svgPreview.style": { - "html": { - "background-position": "0 0, 13px 13px", - "background-size": "26px 26px", - "background": "rgba(255, 255, 255, 1)" - // "background-image": "linear-gradient(45deg, #141414 25%, transparent 25%, transparent 75%, #141414 75%, #141414), linear-gradient(45deg, #141414 25%, transparent 25%, transparent 75%, #141414 75%, #141414)" - } - }, - "print.folder.exclude": [ - "{bin,obj,out}", - "node_module", - "**/*.{bin,exe,dll,hex,pdb,pdf,pfx,png,jpg,gif,bmp,suo,pptx,ppt,jar,woff2,woff,ttf,eot,odt,otf,class}" - ], - "print.lineNumbers": "on", - "print.printAndClose": false, - "print.colourScheme": "XCode", - "print.alternateBrowser": true, - "print.browserPath": "/usr/bin/google-chrome", - "spellright.documentTypes": [ - "markdown", - "latex", - "plaintext" - ], - "spellright.language": [ - "en_GB" - ], - "spellright.notificationClass": "information", - "spellright.suggestionsInHints": false, - "spellright.useDocumentSymbolsInCode": true, - "telemetry.telemetryLevel": "off", - "search.exclude": { - "**/bower_components": true, - "**/*.code-search": true, - "**/node_modules": true, - "**/env": true, - "**/venv": true - }, - "files.associations": { - "*.xml": "html", - "*.svg": "html", - "*.json": "jsonc" - }, - "files.exclude": { - "**/.DS_Store": true, - "**/.git": true, - "**/.svn": true, - "**/.hg": true, - "**/CVS": true, - "**/.classpath": true, - "**/.project": true, - "**/.settings": true, - "**/.factorypath": true - }, - "files.watcherExclude": { - "**/.DS_Store/**": true, - "**/.git/objects/**": true, - "**/.git/subtree-cache/**": true, - "**/.svn/**": true, - "**/.hg/**": true, - "**/CVS/**": true, - "**/node_modules/**": true, - "**/env/**": true, - "**/venv/**": true, - "env-*": true - }, - "workbench.colorTheme": "Sweet Dracula", - "security.workspace.trust.untrustedFiles": "open" -} diff --git a/config/Code/User/snippets/snippet.code-snippets b/config/Code/User/snippets/snippet.code-snippets deleted file mode 100644 index c6cfa712..00000000 --- a/config/Code/User/snippets/snippet.code-snippets +++ /dev/null @@ -1,126 +0,0 @@ -{ - // Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and - // description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope - // is left empty or omitted, the snippet gets applied to all languages. The prefix is what is - // used to trigger the snippet and the body will be expanded and inserted. Possible variables are: - // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. - // Placeholders with the same ids are connected. - // Example: - "if name is main": { - "scope": "python", - "prefix": "ifn", - "body": [ - "if __name__ == '__main__':", - "\t$0" - ], - "description": "" - }, - "for in": { - "scope": "python", - "prefix": "fori", - "body": [ - "for ${1:item} in ${2:items}:", - "\t$0" - ], - "description": "" - }, - "for in range": { - "scope": "python", - "prefix": "forr", - "body": [ - "for ${1:i} in range($2):", - "\t$0" - ], - "description": "" - }, - "lambda": { - "scope": "python", - "prefix": "lamb", - "body": [ - "lambda ${1:arg} : $0", - ], - "description": "" - }, - "map input": { - "scope": "python", - "prefix": "mapi", - "body": [ - "map(${1:func}, input($2).split())" - ], - "description": "" - }, - "html boiler plate": { - "scope": "html", - "prefix": "html", - "body": [ - "", - "", - "", - "", - " ", - " ", - "", - " ${1:Basic HTML5}", - " ", - " ", - "", - " ", - " ", - " ", - " ", - " ", - "", - " ", - " ", - " ", - "", - " ", - "", - "", - "", - "", - " ${0:}", - " ", - "", - "", - "", - ], - "description": "" - }, - "css boiler plate": { - "scope": "css", - "prefix": "css", - "body": [ - "html {", - " font-family: sans-serif;", - " font-size: 100%;", - " box-sizing: border-box;", - "}", - "", - "*, ::before, ::after {", - " box-sizing: inherit;", - "}", - "", - "html, body {", - " margin: 0;", - " padding: 0;", - " width: 100vw;", - " min-height: 100%;", - " text-rendering: optimizeLegibility;", - "}", - "" - ] - }, - "consoleLog": { - "scope": "javascript", - "prefix": "clg", - "body": "console.log(${1:object});", - "description": "Displays a message in the console" - }, - "consoleLogObject": { - "scope": "javascript", - "prefix": "clo", - "body": "console.log('${1:object} :>> ', ${1:object});", - "description": "Displays an object in the console with its name" - } -} diff --git a/config/Code/User/spellright.dict b/config/Code/User/spellright.dict deleted file mode 100644 index 1fab5c0d..00000000 --- a/config/Code/User/spellright.dict +++ /dev/null @@ -1,14 +0,0 @@ -PROxZIMA -gui -url -yara -backend -txt -Regex -github -args -grep -res -yar -shipit -json diff --git a/config/Code/User/vsc.css b/config/Code/User/vsc.css deleted file mode 100644 index 9a341a39..00000000 --- a/config/Code/User/vsc.css +++ /dev/null @@ -1,1424 +0,0 @@ -/* *:not(.monaco-editor .margin):not(.monaco-editor .lines-content.monaco-editor-background):not(.monaco-editor .cursors-layer.cursor-smooth-caret-animation > .cursor):not(.monaco-scrollable-element > .scrollbar.vertical > .slider):not(.monaco-scrollable-element > .scrollbar.horizontal > .slider):not(.pane .pane-body .monaco-list .monaco-scrollable-element .monaco-list-rows) { - transition-duration: 100ms !important; -} */ - -:root, -::after, -::before { - --tab-height: 25px; - --tab-radius: 8px; - --ui-radius: 6px; - --base-color: #bd93f9; - --gradient-one: #cba6f7; - --gradient-two: #89b4fa; - --side-pane-color: var(--vscode-editor-background); - --focus-border: #3f4f81; - --sash-size: 2px !important; - --sash-hover-size: 2px !important; -} - -body > .monaco-workbench > .monaco-grid-view > .monaco-grid-branch-node > .monaco-split-view2 > .monaco-scrollable-element > .split-view-container { - background: var(--vscode-editor-background) !important; -} - -.editor-container { - -webkit-font-smoothing: antialiased; -} - -.monaco-workbench .part.titlebar .window-controls-container .window-icon, -.monaco-workbench .part.editor > .content > .watermark { - display: none !important; -} - -.monaco-workbench .part.editor .tabs-and-actions-container .window-controls-container { - display: flex; - flex-grow: 0; - flex-shrink: 0; - text-align: center; - -webkit-app-region: no-drag; - height: 100%; -} - -.monaco-workbench .part.editor .tabs-and-actions-container .window-controls-container .window-icon { - width: 30px !important; - height: 30px !important; - display: flex; - align-items: center; - justify-content: center; -} - -.monaco-workbench .part.editor .tabs-and-actions-container .window-controls-container .window-icon.window-close:hover { - background: #FF5555 !important; -} - -.monaco-workbench .part.titlebar .window-controls-container .layout-dropdown-container { - margin-left: auto !important; -} - -.monaco-workbench .part.titlebar > .window-controls-container { - width: unset !important; -} - -.monaco-workbench .part.titlebar > .window-controls-container > .window-icon { - width: 30px !important; -} - -.monaco-workbench.linux .part.titlebar > .window-title { - font-size: 12.5px !important; -} - -.monaco-workbench .part.titlebar > .titlebar-container .window-appicon > .home-bar-icon-badge, -.monaco-workbench .part.titlebar > .titlebar-container > .window-appicon:not(.codicon) { - background-image: url(./vsc/vsc.svg) !important; -} - -.monaco-workbench .part.editor > .content .editor-group-container.empty .editor-group-letterpress { - background-image: url(./vsc/vsc-back.svg) !important; -} - -.monaco-workbench .part.editor.has-watermark > .content.empty .editor-group-container > .editor-group-letterpress { - background-position-y: 50% !important; -} - -.mac, -.windows, -.linux { - /* font-family: 'CaskaydiaCove Nerd Font' !important; - --monaco-monospace-font: 'CaskaydiaCove Nerd Font' !important; */ - /* font-family: 'Delugia' !important; - --monaco-monospace-font: 'Delugia Mono' !important; */ -} - - -.monaco-workbench .part.sidebar > .title > .title-label h2 { - font-weight: bold !important; -} - -.monaco-sash.hover:before, -.monaco-sash.active:before { - background: linear-gradient(to bottom, var(--gradient-one), var(--gradient-two)) !important; -} - -/* Squiggly lines to straight lines */ - -.monaco-editor .squiggly-error { - background: none !important; - border-bottom: 0.5px solid var(--vscode-editorError-foreground) !important; -} - -.monaco-editor .squiggly-warning { - background: none !important; - border-bottom: 0.5px solid var(--vscode-editorWarning-foreground) !important; -} - -.monaco-editor .squiggly-info { - background: none !important; - border-bottom: 0.5px solid var(--vscode-editorInfo-foreground) !important; -} - -.monaco-editor .squiggly-hint { - background: none !important; - border-bottom: 0.5px solid var(--vscode-editorHint-foreground) !important; -} - -/* */ - -/* Gradient Tab border */ -body.activity-bar-at-bottom .monaco-workbench .activitybar .active-item-indicator { - display: block !important; -} - -.monaco-workbench .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .action-item.checked .active-item-indicator:before { - border: 0 !important; - width: 3px !important; - height: 100% !important; - position: absolute !important; - top: 0 !important; - left: 0 !important; - background-image: linear-gradient(to top, var(--gradient-one), var(--gradient-two)) !important; - border-radius: 100vmax !important; -} - -.monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab > .tab-border-bottom-container, -.monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab > .tab-border-top-container { - background-image: linear-gradient(to left, var(--gradient-one), var(--gradient-two)) !important; - height: 3px !important; - display: none !important; -} - -.monaco-workbench .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .badge .badge-content { - background-image: linear-gradient(90deg, var(--gradient-one), var(--gradient-two)) !important; -} - -/* */ - -/* Hides dirty tab white dot indicator */ - -.monaco-workbench .part.editor > .content .editor-group-container.active > .title .tabs-container > .tab.dirty > .tab-actions .action-label:not(:hover):before, -.monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab.dirty > .tab-actions .action-label:not(:hover):before { - content: '' !important; -} - -/* */ - -/* Git icon background */ - -.codicon-git-branch:before { - background: linear-gradient(to bottom, var(--gradient-one), var(--gradient-two)) !important; - -webkit-background-clip: text !important; - background-clip: text !important; - color: rgba(255, 255, 255, 0.4) !important; -} - -/* */ - -/* Editor Background */ - -.monaco-editor, -.split-view-view .lines-content.monaco-editor-background { - background: url(./vsc/pek.png) bottom right / 10% auto no-repeat scroll; - /*background: linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,.65)), url(./vsc/bg.jpg) center center / auto 100vh no-repeat scroll;*/ -} - -/* */ - -/* Scrollbar */ -.monaco-scrollable-element > .scrollbar > .slider { - border-radius: 7px !important; -} - -.monaco-scrollable-element > .scrollbar > .slider.active { - background: linear-gradient(to top, var(--gradient-one), var(--gradient-two)) !important; -} - -canvas.decorationsOverviewRuler, -.monaco-scrollable-element > .scrollbar.vertical, -.monaco-scrollable-element > .scrollbar.vertical > .slider { - width: 7px !important; -} - -.monaco-scrollable-element > .scrollbar.vertical > .slider { - transition: all 100ms ease-out; -} - -.monaco-scrollable-element > .scrollbar.horizontal, -.monaco-scrollable-element > .scrollbar.horizontal > .slider { - height: 7px !important; -} - -.monaco-scrollable-element > .scrollbar.horizontal > .slider { - transition: all 100ms ease-out; -} - -.monaco-scrollable-element > .scrollbar.horizontal > .slider { - width: 135px !important; -} - -/* */ - -/* Rounded UI */ - -/* Suggestions */ -.monaco-editor .monaco-hover, -.monaco-editor .suggest-widget, -.monaco-editor .suggest-details { - border-radius: var(--ui-radius) !important; - overflow: hidden !important; - box-shadow: rgb(0 0 0 / 36%) 0px 2px calc(var(--ui-radius) + 2px) !important; -} - -/* Left pane selected file */ -.pane .pane-body, -.pane .pane-body .monaco-list, -.pane .pane-body .monaco-list .monaco-scrollable-element, -.pane .pane-body .monaco-list .monaco-scrollable-element .monaco-list-rows, -.pane .pane-body .monaco-list .monaco-scrollable-element .monaco-list-rows .monaco-list-row { - overflow: visible !important; -} - -.open-editors .monaco-list .monaco-list-row { - padding-left: 0px !important; -} - -.monaco-list-row:hover, -.monaco-list-row.selected, -.monaco-list-row.focused { - border-radius: 0 var(--ui-radius) var(--ui-radius) 0 !important; -} - -.monaco-workbench .monaco-list:not(.element-focused):focus:before, -.monaco-select-box, -.monaco-select-box-dropdown-container, -.monaco-select-box-dropdown-container .monaco-list-row:hover, -.monaco-select-box-dropdown-container .monaco-list-row.selected, -.monaco-select-box-dropdown-container .monaco-list-row.focused { - border-radius: var(--ui-radius) !important; -} - -.monaco-list-row.selected::before, -.monaco-list-row.selected::after { - content: '' !important; - display: block !important; - position: absolute !important; - width: var(--ui-radius) !important; - height: var(--ui-radius) !important; - left: 0 !important; - pointer-events: none !important; -} - -.monaco-list-row.selected::before { - top: calc(0px - var(--ui-radius)) !important; - background: radial-gradient(circle at 100% 0%, transparent 70.71%, var(--side-pane-color) 29.289%) no-repeat; - background-position: 100% 0%; -} - -.monaco-list-row.selected::after { - bottom: calc(0px - var(--ui-radius)) !important; - background: radial-gradient(circle at 100% 100%, transparent 70.71%, var(--side-pane-color) 29.289%) no-repeat; - background-position: 100% 100%; -} - -.monaco-button.monaco-text-button { - border-radius: var(--ui-radius) !important; -} - -/* */ - -/* Smooth cursor */ - -.monaco-editor .cursors-layer.cursor-smooth-caret-animation > .cursor { - transition: all 100ms ease-out; -} - -/* */ - -/* Active tab (Without border) */ - -..tab:first-child { - margin-left: var(--tab-radius) !important; - /* margin-left: calc(var(--tab-radius) - 2px) !important; */ -} - -..tab:last-child { - margin-right: var(--tab-radius) !important; - /* margin-right: calc(var(--tab-radius) - 2px) !important; */ -} - -..tab.active { - /* border: 2px solid var(--base-color) !important; */ - /* background-color: transparent !important; */ - /* rgb(20, 24, 34) */ - border-radius: var(--tab-radius) var(--tab-radius) 0 0 !important; - /* border-bottom: 2px solid #0c0e14 !important; */ - /* z-index: 1 !important; */ -} - -.tab.dirty-border-top > .tab-border-top-container { - border-radius: var(--tab-radius) var(--tab-radius) 0 0 !important; -} - -ignorethispart { - - /* Border bottom radius */ - .tab.active::before, - .tab.active::after { - content: '' !important; - display: block !important; - box-sizing: border-box !important; - position: absolute !important; - z-index: 1; - width: var(--tab-radius) !important; - height: var(--tab-radius) !important; - bottom: 0px !important; - /* bottom: -2px !important; */ - pointer-events: none !important; - /* border-bottom: 2px solid var(--base-color) !important; */ - } - - .tab.active::before { - left: calc(0px - var(--tab-radius)) !important; - /* transform: translateX(calc(0px - var(--tab-radius))) !important; */ - /* border-right: 2px solid var(--base-color) !important; */ - border-bottom-right-radius: var(--tab-radius) !important; - /* box-shadow: 3px 3px 0 3px var(--tab-color) !important; */ - box-shadow: 3px 3px 0 3px var(--vscode-editor-background) !important; - /* background: radial-gradient(circle at 0% 0%, transparent 70.71%, var(--tab-color) 29.289%) no-repeat; - background-position: 0% 0%; */ - } - - .tab.active::after { - right: 0 !important; - transform: translateX(var(--tab-radius)) !important; - /* border-left: 2px solid var(--base-color) !important; */ - border-bottom-left-radius: var(--tab-radius) !important; - /* box-shadow: -3px 3px 0 3px var(--tab-color) !important; */ - box-shadow: -3px 3px 0 3px var(--vscode-editor-background) !important; - /* background: radial-gradient(circle at 100% 0%, transparent 70.71%, var(--tab-color) 29.289%) no-repeat; - background-position: 100% 0%; */ - } - - /* .tabs-container:before { - content: '' !important; - top: 0 !important; - left: 0 !important; - right: 0 !important; - bottom: 0 !important; - background: linear-gradient(90deg, rgb(12, 14, 20), rgb(189, 172, 255), rgb(189, 147, 249), rgb(189, 147, 249), rgb(189, 147, 249), rgb(189, 172, 249), rgb(12, 14, 20)) !important; - clip: rect(33px, 2600px, 33px, 0px) !important; - position: absolute !important; -} - -.tabs-container:after { - content: '' !important; - top: 0 !important; - left: 0 !important; - right: 0 !important; - bottom: 0 !important; - background: linear-gradient(90deg, rgb(12, 14, 20), rgb(189, 172, 255), rgb(189, 147, 249), rgb(189, 147, 249), rgb(189, 147, 249), rgb(189, 172, 249), rgb(12, 14, 20)) !important; - clip: rect(33px, 2600px, 35px, 0px) !important; - position: absolute !important; -} - -.tab-label > .monaco-icon-label-container::after { - background: transparent !important; -} */ -} - -.tab { - border-radius: 12px !important; - margin: 5px !important; - height: 40px !important; - border: 2px solid #313244 !important; - background-color: #161925 !important; -} - -.tab.active { - border: 2px solid var(--gradient-one) !important; - color: var(--gradient-one) !important; - font-weight: bold !important; -} - -.tab.dirty { - border: 2px solid var(--gradient-two) !important; - -} - -.tabs-container { - height: auto !important; - padding: 5px !important; -} - -.editor-actions { - height: inherit !important; -} - - - - - - - - -ignorethispart { - /* ATOM */ - - .part.editor > .content .editor-group-container > .title:not(.tabs).dirty .codicon-close-dirty { - color: #568af2 !important; - } - - - /* .monaco-workbench.vs-dark .part.editor>.content .editor-group-container .editor-group-watermark>.shortcuts dl, */ - .monaco-workbench .part.editor > .content .editor-group-container > .editor-group-watermark > .shortcuts dd > .monaco-keybinding, - .monaco-workbench.vs-dark .part.editor > .content .editor-group-container .editor-group-watermark > .shortcuts dt { - color: hsla(219, 13%, 66%, .6) !important; - } - - - - ::placeholder { - color: #9da5b4 !important; - opacity: 1 !important; - } - - - /* NOTE: badge count may be off-centred when workbench font is changed */ - /* .windows { */ - /* .monaco-workbench { -font-family: 'Iosevka', 'Victor Mono', 'JetBrains Mono', 'SF Mono', 'Input Mono', 'Hack', 'Dank Mono', 'Fira Code', 'Operator Mono', 'Source Code Pro', 'IBM Plex Mono', 'Courier New', Courier, monospace; -} */ - - - /* tab label */ - - .monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab .tab-label { - text-align: center !important; - } - - .monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab.sizing-fit .monaco-icon-label, - .monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab.sizing-fit .monaco-icon-label > .monaco-icon-label-container { - overflow: hidden !important; - } - - .monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab.sizing-fit .monaco-icon-label[class*="untitled-"] { - font-style: italic !important; - } - - - /* caret, cursor */ - - .monaco-inputbox.synthetic-focus .input { - contain: paint; - caret-color: #568af2; - } - - .suggest-input-container > .monaco-editor.focused .cursor { - /* .monaco-editor.focused .cursor { */ - border-color: #568af2; - border-width: 2px; - border-left: 2px solid #528bff; - } - - - /* PANEL */ - - /* action label */ - - .monaco-workbench .part.basepanel > .composite.title > .panel-switcher-container > .monaco-action-bar .action-item .action-label { - display: block !important; - } - - .monaco-workbench .part.basepanel > .composite.title > .panel-switcher-container > .monaco-action-bar .action-item .action-label { - color: #9da5b4 !important; - text-transform: lowercase; - } - - .monaco-workbench .part.basepanel > .composite.title > .panel-switcher-container > .monaco-action-bar .action-item .action-label::first-letter { - text-transform: uppercase !important; - } - - .part.panel.basepanel.bottom { - color: #9da5b4 !important; - } - - - /* PANEL end. */ - - - - /* editor hover widget */ - - .monaco-editor .parameter-hints-widget.multiple, - .monaco-editor .monaco-hover { - color: #9da5b4 !important; - border-radius: 3px !important; - } - - - /* panel indicator */ - - .part.basepanel > .composite.title > .panel-switcher-container > .monaco-action-bar .action-item .active-item-indicator:before { - border: none !important; - } - - - /* extension name */ - - .extension-list-item > .details > .description { - color: rgba(157, 165, 180, 0.6) !important; - } - - .extension-list-item > .details > .footer > .author > .publisher-name { - color: rgba(157, 165, 180, 0.6) !important; - } - - - /* workbench hover widget */ - - .monaco-workbench .workbench-hover { - border-radius: 3px !important; - background: #4d78cc !important; - color: #fff !important; - border-color: #4d78cc !important; - } - - .monaco-workbench .workbench-hover-pointer:after { - background-color: #4d78cc !important; - border-color: #4d78cc !important; - /*border-right: 1px solid #181a1f !important; - border-bottom: 1px solid #181a1f !important;*/ - } - - - /* settings (UI) */ - - .settings-editor > .settings-header > .settings-header-controls { - border-color: #181a1f !important; - } - - - /* checkbox */ - - .settings-editor > .settings-body .settings-tree-container .setting-item-bool .codicon-check::before, - .settings-editor > .settings-body .settings-tree-container .setting-item-bool .setting-value-checkbox::after { - color: #001133 !important; - } - - /* .settings-editor>.settings-body .settings-tree-container .setting-item-bool .setting-value-checkbox.checked, */ - .settings-editor > .settings-body .settings-tree-container .setting-item-bool .codicon-check.checked { - background-color: #568af2 !important; - } - - - /* status bar */ - - .monaco-workbench .part.statusbar { - border-top: 1px solid #181a1f !important; - } - - - /* sidebar */ - - .part.sidebar.left, - .part.sidebar.right { - color: #9da5b4 !important; - } - - .sidebar.right { - border-left: 1px solid #181a1f !important; - } - - .sidebar.left { - border-right: 1px solid #181a1f; - } - - - /* .codicon, */ - - .codicon-notifications-clear-all, - .codicon-notifications-do-not-disturb, - .codicon-notifications-hide, - .codicon-gear, - - .codicon-edit, - .codicon-new-folder, - .codicon-refresh, - - .codicon-watch-expressions-add-function-breakpoint, - .codicon-breakpoints-activate, - .codicon-breakpoints-remove-all, - .codicon-collapse-all, - .codicon-watch-expressions-add, - .codicon-watch-expressions-remove-all, - - .codicon-debug-console-evaluation-prompt, - /*.codicon-split-horizontal,*/ - .codicon-terminal-bash, - .codicon-terminal-cmd, - .codicon-terminal-powershell, - .codicon-trashcan, - .codicon-debug, - - .codicon-preferences-clear-input, - .codicon-preferences-filter, - .codicon-preferences-open-settings, - .codicon-search-refresh, - - .codicon-new-file, - .codicon-save-all, - .codicon-close-all, - .codicon-expand-all, - .codicon-timeline-pin, - .codicon-timeline-refresh, - .codicon-timeline-filter, - .codicon-localHistory-icon, - - .extension-action.icon, - .codicon-extension-activation-time, - .codicon-extensions-install-count, - .codicon-view-pane-container-expanded, - .codicon-view-pane-container-collapsed, - .codicon-preserve-case, - .codicon-book, - .codicon-exclude, - - .codicon-widget-close, - .codicon-find-previous-match, - .codicon-find-next-match, - .codicon-find-replace, - .codicon-find-replace-all, - .codicon-find-collapsed, - .codicon-find-expanded, - .codicon-search-replace-all, - .codicon-search-hide-replace, - .codicon-search-show-replace, - .codicon-split-vertical, - .codicon-split-horizontal, - .codicon-toolbar-more, - .codicon-terminal, - .codicon-panel-maximize, - .codicon-panel-restore { - color: #9da5b4 !important; - } - - - /* breadcrumbs */ - /* .monaco-breadcrumbs .monaco-breadcrumb-item { - color: var(--vscode-breadcrumb-foreground); -} */ - - - /* select box */ - - .monaco-action-bar .action-item .monaco-select-box { - color: #9da5b4 !important; - } - - - /* search, extension */ - - .suggest-input-container .suggest-input-placeholder, - .search-view .search-widget .monaco-inputbox .input::placeholder { - /* .search-view .search-widget .monaco-inputbox>.ibwrapper>textarea.input::placeholder { */ - color: #9da5b4 !important; - /* opacity: 1 !important; */ - } - - .search-view .message { - color: #9da5b4 !important; - } - - .codicon-search-show-context, - .codicon-preserve-case, - .codicon-book, - .codicon-exclude { - color: #9da5b4 !important; - border-color: #181a1f !important; - background-color: #373d48 !important; - } - - .codicon-search-show-context.checked, - .codicon-preserve-case.checked, - .codicon-book.checked, - .codicon-exclude.checked { - color: #fff !important; - border-color: #181a1f !important; - background-color: #568af2 !important; - } - - - /* find widget */ - - .monaco-editor .find-widget.no-results > .find-part .monaco-inputbox.synthetic-focus .input { - caret-color: #ff6347; - } - - .monaco-editor .find-widget.no-results .matchesCount { - color: #ff6347; - } - - .monaco-editor .find-widget.no-results > .find-part .monaco-inputbox.synthetic-focus { - border-color: #ff6347 !important; - box-shadow: 0 0 0 1px #ff6347 !important; - background-color: #312426 !important; - } - - .monaco-editor .find-widget, - .monaco-editor .find-widget .monaco-findInput .input::placeholder { - color: #9da5b4 !important; - } - - .codicon-case-sensitive, - .codicon-whole-word, - .codicon-regex { - color: #9da5b4 !important; - border-color: #181a1f !important; - background-color: #373d48 !important; - } - - .codicon-case-sensitive.checked, - .codicon-whole-word.checked, - .codicon-regex.checked { - color: #fff !important; - border-color: #181a1f !important; - background-color: #568af2 !important; - } - - - /* tab (for panel && editor) */ - - .monaco-workbench .part.basepanel.bottom > .composite.title > .panel-switcher-container > .monaco-action-bar .action-item:first-of-type, - .tabs-container > .tab:first-of-type { - border-left-color: transparent; - } - - .monaco-workbench .part.panel.basepanel.bottom .composite.title, - .editor-group-container > .title .tabs-container { - box-shadow: inset 0 -1px 0 #181a1f; - } - - .monaco-workbench .part.basepanel.bottom > .composite.title > .panel-switcher-container > .monaco-action-bar .action-item.icon:last-of-type { - box-shadow: none !important; - border-left: none !important; - } - - .monaco-workbench .part.basepanel.bottom > .composite.title > .panel-switcher-container > .monaco-action-bar .action-item:last-of-type, - .tabs-container > .tab:last-of-type { - box-shadow: inset 0 -1px 0 #181a1f, 1px 0 0 #181a1f; - } - - .monaco-workbench .part.basepanel.bottom > .composite.title > .panel-switcher-container > .monaco-action-bar .action-item.checked:last-of-type, - .tabs-container > .tab.active:last-of-type { - box-shadow: 1px 0 0 #181a1f; - } - - .monaco-workbench .part.basepanel.bottom > .composite.title > .panel-switcher-container > .monaco-action-bar .action-item, - .monaco-workbench .part.basepanel.bottom > .composite.title > .panel-switcher-container > .monaco-action-bar .action-item.checked, - .tabs-container > .tab, - .tabs-container > .tab.active { - flex: 1 1 0; - max-width: 22em; - min-width: 7em !important; - } - - .monaco-workbench .part.basepanel.bottom > .composite.title > .panel-switcher-container > .monaco-action-bar .action-item.checked, - .tabs-container > .tab.active { - color: #d7dae0; - background-color: #282c34; - box-shadow: none; - width: -webkit-fit-content; - } - - .monaco-workbench .part.basepanel.bottom > .composite.title > .panel-switcher-container > .monaco-action-bar .action-item, - .tabs-container > .tab { - border-left: 1.4px solid #181a1f; - border-right: none !important; - transition: max-width 0.25s ease-in-out; - box-shadow: inherit; - } - - - /* active tab(editor, panel) border */ - - .monaco-workbench .part.panel:focus-within > .composite.title > .panel-switcher-container > .monaco-action-bar .action-item.checked .action-label::before, - .monaco-workbench .part.panel > .composite.title > .panel-switcher-container > .monaco-action-bar .action-item.checked:active .action-label::before, - .part.editor > .content .editor-group-container:focus-within .tabs-container > .tab.active:before { - background: #568af2; - } - - .monaco-workbench .part.panel > .composite.title > .panel-switcher-container > .monaco-action-bar .action-item.checked .action-label::before, - .part.editor > .content .active .tabs-container > .tab.active:before { - content: ""; - position: absolute; - pointer-events: none; - z-index: 2; - top: 0; - left: -1px; - bottom: 0; - width: 2px; - background: #4f545e; - box-sizing: border-box; - } - - - .part.editor > .content .split-view-view:not(:first-child) .active .tabs-container > .tab.active:before { - left: 0 !important; - } - - - /* tab close btn */ - - .tabs-container > .tab.dirty:not(:hover) .codicon-close::before { - content: "\ea71" !important; - /* display: inline-block; */ - } - - .tabs-container > .tab .codicon-close::before { - content: "\ea76" !important; - } - - .codicon-panel-close, - .tabs-container > .tab .codicon-close { - border-radius: 3px; - transform: scale(0); - transition: transform .08s; - } - - .tabs-container > .tab.dirty:not(:hover) .codicon-close { - color: #568af2 !important; - border-radius: 3px; - border: none; - transform: scale(1); - } - - .part.basepanel > .title:has(.title-actions:hover) .codicon-panel-close, - .part.basepanel > .title > .global-actions:hover .codicon-panel-close, - .tabs-container > .tab:hover .codicon-close { - transform: scale(1); - transition-duration: .16s; - } - - .codicon-panel-close:hover, - .tabs-container > .tab .codicon-close:hover { - color: #001133 !important; - background-color: #568af2 !important; - } - - .tabs-container > .tab.dirty:hover .codicon-close:hover { - color: #fff !important; - } - - .tabs-container > .tab.dirty:hover .codicon-close { - color: #568af2 !important; - } - - - /* button border */ - - .monaco-button.monaco-text-button { - border: 1px solid #181a1f; - } - - - - /* keybinding label */ - - - .quick-input-list .monaco-keybinding > .monaco-keybinding-key:has(~ .monaco-keybinding-key-separator) { - margin-right: 0 !important; - } - - .quick-input-list .monaco-keybinding > .monaco-keybinding-key:has(+ .monaco-keybinding-key-chord-separator) { - border-top-right-radius: 3px !important; - border-bottom-right-radius: 3px !important; - } - - .quick-input-list .monaco-keybinding > .monaco-keybinding-key-chord-separator + .monaco-keybinding-key { - border-top-left-radius: 3px !important; - border-bottom-left-radius: 3px !important; - } - - .quick-input-list .monaco-keybinding > .monaco-keybinding-key:first-child { - border-top-left-radius: 3px !important; - border-bottom-left-radius: 3px !important; - } - - .quick-input-list .monaco-keybinding > .monaco-keybinding-key:last-child { - border-top-right-radius: 3px !important; - border-bottom-right-radius: 3px !important; - } - - .quick-input-list .monaco-keybinding > .monaco-keybinding-key { - margin-left: 0; - } - - /* .quick-input-list .monaco-keybinding>.monaco-keybinding-key-separator:has(~ .monaco-keybinding-key) { - margin-left: 0 !important; - } */ - - .monaco-keybinding { - line-height: 2 !important; - } - - .quick-input-list .monaco-keybinding > .monaco-keybinding-key, - .quick-input-list .monaco-keybinding > .monaco-keybinding-key-separator { - color: #fff !important; - background-color: #4d78cc !important; - } - - .quick-input-list .monaco-keybinding > .monaco-keybinding-key-separator { - line-height: 22px !important; - } - - .quick-input-list .monaco-keybinding > .monaco-keybinding-key { - /* border-radius: 3px; */ - border-radius: 0; - border: transparent !important; - box-shadow: none !important; - padding: 0 0.375em !important; - } - - - /* center count-badge */ - - .extensions-viewlet > .extensions .extension-view-header .count-badge-wrapper { - display: flex !important; - align-items: center !important; - } - - .extension-list-item > .icon-container .extension-badge { - display: flex !important; - align-items: center !important; - } - - - /* notifications center header */ - - .monaco-workbench > .notifications-center > .notifications-center-header > .notifications-center-header-title { - color: #9da5b4 !important; - } - - /* notifications toolbar */ - - .notification-list-item .notification-list-item-toolbar-container .action-item .codicon { - /* color: inherit !important; */ - color: black !important; - opacity: .4 !important; - background: none !important; - } - - .notification-list-item .notification-list-item-toolbar-container .action-item .codicon:hover { - opacity: 1 !important; - } - - - /* notifications */ - - :where(.notifications-list-container) .monaco-list-row:has( :is(.codicon-error)) { - color: #7a1200 !important; - background-color: #e89d96 !important; - } - - :where(.notifications-list-container) .monaco-list-row:has( :is(.codicon-warning)) { - color: #835b21 !important; - background-color: #f3bf44 !important; - } - - :where(.notifications-list-container) .monaco-list-row:has( :is(.codicon-info)) { - color: #0e3377 !important; - background-color: #7ebef7 !important; - } - - - - /* notifications buttons */ - - - .notifications-list-container .monaco-list-row:has(.codicon-info) .monaco-text-button { - color: #d7dae0 !important; - text-shadow: none !important; - border: 1px solid #181a1f !important; - background-color: #0f82e6 !important; - background-image: linear-gradient(#0f87f0, #0f82e6) !important; - color: white !important; - } - - .notifications-list-container .monaco-list-row:has(.codicon-info) .monaco-text-button:hover { - color: #ffffff !important; - background-image: linear-gradient(#1e8ef1, #1489f0) !important; - } - - .notifications-list-container .monaco-list-row:has(.codicon-info) .monaco-text-button:active { - background: #0d77d3 !important; - box-shadow: none !important; - } - - .notifications-list-container .monaco-list-row:has(.codicon-info) .monaco-text-button:focus { - outline: none !important; - } - - .notifications-list-container .monaco-list-row:has(.codicon-info) .monaco-text-button:hover, - .notifications-list-container .monaco-list-row:has(.codicon-info) .monaco-text-button:focus { - color: white !important; - } - - .notifications-list-container .monaco-list-row:has(.codicon-info) .monaco-text-button:focus { - border-color: transparent !important; - background-clip: padding-box !important; - box-shadow: inset 0 0 0 1px rgba(24, 26, 31, 0.5), 0 0 0 1px #0f82e6 !important; - } - - .notifications-list-container .monaco-list-row:has(.codicon-warning) .monaco-text-button { - color: #d7dae0 !important; - text-shadow: none !important; - border: 1px solid #181a1f !important; - background-color: #ad7c0b !important; - background-image: linear-gradient(#b6830c, #ad7c0b) !important; - color: white !important; - } - - .notifications-list-container .monaco-list-row:has(.codicon-warning) .monaco-text-button:hover { - color: #ffffff !important; - background-image: linear-gradient(#c58d0d, #bb860c) !important; - } - - .notifications-list-container .monaco-list-row:has(.codicon-warning) .monaco-text-button:active { - background: #996e0a !important; - box-shadow: none !important; - } - - .notifications-list-container .monaco-list-row:has(.codicon-warning) .monaco-text-button:focus { - outline: none !important; - } - - .notifications-list-container .monaco-list-row:has(.codicon-warning) .monaco-text-button:hover, - .notifications-list-container .monaco-list-row:has(.codicon-warning) .monaco-text-button:focus { - color: white !important; - } - - .notifications-list-container .monaco-list-row:has(.codicon-warning) .monaco-text-button:focus { - border-color: transparent !important; - background-clip: padding-box !important; - box-shadow: inset 0 0 0 1px rgba(24, 26, 31, 0.5), 0 0 0 1px #ad7c0b !important; - } - - .notifications-list-container .monaco-list-row:has(.codicon-error) .monaco-text-button { - color: #d7dae0 !important; - text-shadow: none !important; - border: 1px solid #181a1f !important; - background-color: #d13b2e !important; - background-image: linear-gradient(#d34336, #d13b2e) !important; - color: white !important; - } - - .notifications-list-container .monaco-list-row:has(.codicon-error) .monaco-text-button:hover { - color: #ffffff !important; - background-image: linear-gradient(#d64f43, #d4473a) !important; - } - - .notifications-list-container .monaco-list-row:has(.codicon-error) .monaco-text-button:active { - background: #c0372a !important; - box-shadow: none !important; - } - - .notifications-list-container .monaco-list-row:has(.codicon-error) .monaco-text-button:focus { - outline: none !important; - } - - .notifications-list-container .monaco-list-row:has(.codicon-error) .monaco-text-button:hover, - .notifications-list-container .monaco-list-row:has(.codicon-error) .monaco-text-button:focus { - color: white !important; - } - - .notifications-list-container .monaco-list-row:has(.codicon-error) .monaco-text-button:focus { - border-color: transparent !important; - background-clip: padding-box !important; - box-shadow: inset 0 0 0 1px rgba(24, 26, 31, 0.5), 0 0 0 1px #d13b2e !important; - } - - - /* scrollbar */ - - canvas.decorationsOverviewRuler, - .monaco-scrollable-element > .scrollbar.vertical, - .monaco-scrollable-element > .vertical > .slider { - width: 10px !important; - } - - .monaco-scrollable-element > .scrollbar.horizontal, - .monaco-scrollable-element > .horizontal > .slider { - height: 10px !important; - } - - .quick-input-list > .monaco-list > .monaco-scrollable-element > .visible, - .quick-input-list > .monaco-list > .monaco-scrollable-element > .invisible.vertical { - background: #21252b !important; - } - - .monaco-scrollable-element > .visible, - .monaco-scrollable-element > .invisible.fade { - transition: none !important; - } - - /*.monaco-scrollable-element>.invisible.fade,*/ - .quick-input-list > .monaco-list > .monaco-scrollable-element > .invisible.vertical.fade { - opacity: 1 !important; - pointer-events: all !important; - } - - .monaco-scrollable-element > .scrollbar > .slider { - box-sizing: border-box !important; - border-radius: 5px !important; - border: 3px solid !important; - border-color: rgba(40, 44, 52, 0) !important; - /* background: #4b5362 !important; */ - background-color: rgba(75, 83, 98, 1) !important; - background-clip: content-box !important; - } - - .quick-input-list > .monaco-list > .monaco-scrollable-element > .scrollbar > .slider { - background: #4b5362 !important; - border-color: #21252b !important; - } - - .monaco-scrollable-element > .vertical > .slider:active { - border-radius: 0 !important; - border-left-width: 0 !important; - border-right-width: 0 !important; - } - - .monaco-scrollable-element > .horizontal > .slider:active { - border-radius: 0 !important; - border-top-width: 0 !important; - border-bottom-width: 0 !important; - } - - .quick-input-widget { - top: 50px !important; - /* no margin here. */ - box-sizing: border-box !important; - color: #9da5b4; - padding-bottom: 0.75em !important; - box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.4), 0 0 0 100vw rgba(8, 9, 10, 0.75) !important; - } - - /* .quick-input-header { - display: flex; - padding: 0.75em; -} */ - - .quick-input-widget.hidden-input .quick-input-header { - padding: 0 !important; - margin-bottom: 0 !important; - } - - .quick-input-header { - /* display: flex; */ - padding: 0.75em !important; - } - - .quick-input-list .monaco-scrollable-element { - margin: 0 !important; - padding: 0 !important; - } - - .quick-input-widget.hidden-input .quick-input-list { - margin-top: 0.75em !important; - } - - .quick-input-list { - display: block !important; - border: 1.5px solid #181a1f !important; - position: relative !important; - overflow-y: auto !important; - max-height: 312px !important; - /* margin: 0 0.75em 0.75em !important; */ - margin: 0 0.75em 0 !important; - padding: 0 !important; - list-style: none !important; - cursor: default !important; - } - - .quick-input-list .monaco-list { - max-height: 312px !important; - margin: 0 !important; - padding: 0 !important; - } - - .quick-input-list .monaco-list .monaco-list-rows { - background-color: #292d35 !important; - } - - .quick-input-list .monaco-list-row.focused { - /* color: #d7dae0; */ - background-color: #3a3f4b !important; - } - - .quick-input-list .monaco-list .monaco-list-row { - position: static !important; - height: auto !important; - display: block !important; - padding: 0.75em 1em !important; - line-height: 2em !important; - border-bottom: 1.5px solid #181a1f !important; - border-radius: 0 !important; - color: #9da5b4; - } - - .quick-input-list .monaco-list-row:last-of-type { - border-bottom: none !important; - } - - .monaco-findInput > div { - overflow: visible !important; - } - - .suggest-input-container, - .monaco-inputbox.idle { - border: 1px solid #181a1f !important; - background-color: #1b1d23 !important; - border-radius: 3px !important; - } - - /* .monaco-editor.focused, */ - .suggest-input-container.synthetic-focus, - .monaco-inputbox.synthetic-focus { - overflow: visible !important; - outline: none !important; - border-color: #568af2 !important; - box-shadow: 0 0 0 1px #568af2 !important; - background-color: #202634 !important; - } - - .monaco-editor .suggest-widget > .message { - border-radius: 3px; - padding-bottom: 1em; - background-color: #252830; - } - - .monaco-editor .suggest-widget { - background: transparent !important; - border: none !important; - position: fixed; - /* z-index: 12; */ - contain: layout style; - display: block; - } - - .monaco-editor .suggest-widget .monaco-list { - position: relative; - margin-left: -39px; - width: auto !important; - background-color: #252830 !important; - box-shadow: 0 2px 8px 1px rgba(0, 0, 0, 0.3); - border-radius: 3px; - min-width: 243px; - padding: 0; - overflow: hidden; - color: #9da5b4; - } - - .monaco-editor .suggest-widget .monaco-list-rows { - background-color: transparent; - border: none; - padding: 0; - position: relative; - overflow-y: scroll; - margin-top: 0; - display: table; - width: 100%; - margin-right: 10px; - list-style: none; - cursor: default; - } - - .monaco-editor .suggest-widget .monaco-list-row { - display: table-row; - color: #9da5b4; - line-height: 2em; - /* padding-left: 0.375em; */ - padding-left: 0; - white-space: nowrap; - } - - .monaco-editor .suggest-widget .monaco-list-row.focused { - background-color: #3a3f4b !important; - } - - /* .monaco-editor .suggest-widget .codicon[class*=-variable] { */ - /* .monaco-editor .suggest-widget .codicon-symbol-snippet[class*=codicon-] { */ - .monaco-editor .suggest-widget .codicon[class*=codicon-] { - color: rgba(157, 165, 180, 0.6); - background: rgba(157, 165, 180, 0.1); - /* .monaco-editor .suggest-widget .codicon[class*=codicon-symbol-function] { */ - font-size: 14px; - display: inline-block !important; - height: inherit; - min-width: 2em; - padding-left: 0; - margin-right: 0.75em !important; - line-height: 2em; - text-align: center; - font-style: normal; - font-weight: bold; - } - - .monaco-editor .suggest-widget .codicon[class*=codicon-symbol-attribute] { - color: #d19a66 !important; - background: rgba(209, 154, 102, 0.2); - } - - .monaco-editor .suggest-widget .codicon[class*=codicon-symbol-builtin] { - color: #c678dd !important; - background: rgba(198, 120, 221, 0.2); - } - - .monaco-editor .suggest-widget .codicon[class*=codicon-symbol-class] { - color: #e5c07b !important; - background: rgba(229, 192, 123, 0.2); - } - - .monaco-editor .suggest-widget .codicon[class*=codicon-symbol-constant] { - color: #d19a66 !important; - background: rgba(209, 154, 102, 0.2); - } - - .monaco-editor .suggest-widget .codicon[class*=codicon-symbol-function] { - color: #61afef !important; - background: rgba(97, 175, 239, 0.2); - } - - .monaco-editor .suggest-widget .codicon[class*=codicon-symbol-import] { - color: #c678dd !important; - background: rgba(198, 120, 221, 0.2); - } - - .monaco-editor .suggest-widget .codicon[class*=codicon-symbol-keyword] { - color: #c678dd !important; - background: rgba(198, 120, 221, 0.2); - } - - .monaco-editor .suggest-widget .codicon[class*=codicon-symbol-method] { - color: #61afef !important; - background: rgba(97, 175, 239, 0.2); - } - - .monaco-editor .suggest-widget .codicon[class*=codicon-symbol-module] { - color: #c678dd !important; - background: rgba(198, 120, 221, 0.2); - } - - .monaco-editor .suggest-widget .codicon[class*=codicon-symbol-mixin] { - color: #e5c07b !important; - background: rgba(229, 192, 123, 0.2); - } - - .monaco-editor .suggest-widget .codicon[class*=codicon-symbol-package] { - color: #c678dd !important; - background: rgba(198, 120, 221, 0.2); - } - - .monaco-editor .suggest-widget .codicon[class*=codicon-symbol-property] { - color: #abb2bf !important; - background: rgba(171, 178, 191, 0.2); - } - - .monaco-editor .suggest-widget .codicon[class*=codicon-symbol-require] { - color: #c678dd !important; - background: rgba(198, 120, 221, 0.2); - } - - .monaco-editor .suggest-widget .codicon[class*=codicon-symbol-snippet] { - color: #98c379 !important; - background: rgba(152, 195, 121, 0.2); - } - - .monaco-editor .suggest-widget .codicon[class*=codicon-symbol-tag] { - color: #e06c75 !important; - background: rgba(224, 108, 117, 0.2); - } - - .monaco-editor .suggest-widget .codicon[class*=codicon-symbol-type] { - color: #e5c07b !important; - background: rgba(229, 192, 123, 0.2); - } - - .monaco-editor .suggest-widget .codicon[class*=codicon-symbol-value] { - color: #abb2bf !important; - background: rgba(171, 178, 191, 0.2); - } - - .monaco-editor .suggest-widget .codicon[class*=codicon-symbol-variable] { - color: #e06c75 !important; - background: rgba(224, 108, 117, 0.2); - } - - .monaco-editor .suggest-widget .codicon[class*=codicon-symbol-selector] { - color: #d19a66 !important; - background: rgba(209, 154, 102, 0.2); - } - - .monaco-editor .suggest-widget .codicon[class*=codicon-symbol-pseudo-selector] { - color: #d19a66 !important; - background: rgba(209, 154, 102, 0.2); - } -} diff --git a/config/Code/User/vsc.js b/config/Code/User/vsc.js deleted file mode 100644 index a14bf5ab..00000000 --- a/config/Code/User/vsc.js +++ /dev/null @@ -1,100 +0,0 @@ -function getOffset(el) { - const rect = el.getBoundingClientRect(); - return { - left: rect.left + window.scrollX, - top: rect.top + window.scrollY, - }; -} - -const prevOffset = {}; - -const displayEffect = (event) => { - if (prevOffset.top === undefined) { - let initialOffset = getOffset(document.getElementsByClassName("cursor")[0]); - prevOffset.top = initialOffset.top; - prevOffset.left = initialOffset.left; - } - - const existingRect = document.getElementById("myRect"); - if (existingRect !== null) { - existingRect.remove(); - } - - setTimeout(function () { - const currOffset = getOffset(document.getElementsByClassName("cursor")[0]); - const top = prevOffset.top; - const left = prevOffset.left; - const rect = document.createElement("div"); - - // console.log("prev: ", top, left); - // console.log("curr: ", currOffset.top, currOffset.left); - - rect.id = "myRect"; - rect.style.cssText = ` - position:absolute; - top:${top}px; - left:${left}px; - width:9px; - height:20px; - z-index:10; - background-color:red; - opacity: 0.5; - `; - rect.animate( - [ - // keyframes - { transform: "scale(1) skew(10deg)" }, - { transform: "scale(0) skew(10deg)" }, - ], - { - // timing options - duration: 500, - easing: "ease-in-out", - direction: "alternate", - iterations: Infinity, - } - ); - - document.body.appendChild(rect); - prevOffset.top = currOffset.top; - prevOffset.left = currOffset.left; - }, 24); -}; - -// NOTE: First enable editor.cursorSmoothCaretAnimation. -// NOTE: Uncomment this to get a cursor trail effect. -// document.addEventListener("keydown", displayEffect); - -const windowControls = document.createElement('div'); -windowControls.className = 'window-controls-container'; -const minimize = document.createElement('div'); -minimize.classList.add('window-icon', 'window-minimize', 'codicon', 'codicon-chrome-minimize'); -const restore = document.createElement('div'); -restore.classList.add('window-icon', 'window-max-restore', 'codicon', 'codicon-chrome-restore'); -const close = document.createElement('div'); -close.classList.add('window-icon', 'window-close', 'codicon', 'codicon-chrome-close'); -windowControls.appendChild(minimize); -windowControls.appendChild(restore); -windowControls.appendChild(close); -// const html = '
'; -// template.innerHTML = html; -// const windowControls = template.content.firstChild; - -var observer = new MutationObserver(function (mutations, me) { - console.warn('Observing if window controls present'); - // const windowControls = document.querySelector(".window-controls-container"); - const tabContainer = document.querySelector(".tabs-and-actions-container"); - - if (windowControls && tabContainer) { - tabContainer.appendChild(windowControls); - console.warn('Observing completed'); - me.disconnect(); - return; - } -}); - - -// observer.observe(document, { -// childList: true, -// subtree: true -// }); diff --git a/config/VSCodium/User/extensions.txt b/config/VSCodium/User/extensions.txt new file mode 100644 index 00000000..36ef6bdd --- /dev/null +++ b/config/VSCodium/User/extensions.txt @@ -0,0 +1,40 @@ +alefragnani.project-manager +amodio.toggle-excluded-files +astro-build.astro-vscode +asvetliakov.vscode-neovim +bmalehorn.vscode-fish +bradlc.vscode-tailwindcss +BrandonKirbyson.vscode-animations +Catppuccin.catppuccin-vsc +charliermarsh.ruff +Codeium.codeium +DavidAnson.vscode-markdownlint +dbaeumer.vscode-eslint +drcika.apc-extension +dsznajder.es7-react-js-snippets +eamodio.gitlens +esbenp.prettier-vscode +ExodiusStudios.comment-anchors +formulahendry.code-runner +golang.go +humao.rest-client +jrebocho.vscode-random +mads-hartmann.bash-ide-vscode +ms-azuretools.vscode-docker +ms-python.python +ms-python.vscode-pylance +petekinnecom.terminal-command-keys +rafamel.subtle-brackets +redhat.ansible +redhat.vscode-yaml +rust-lang.rust-analyzer +streetsidesoftware.code-spell-checker +sumneko.lua +svelte.svelte-vscode +thang-nm.catppuccin-perfect-icons +timonwong.shellcheck +usernamehw.errorlens +VSpaceCode.whichkey +Vue.volar +yandeu.five-server +ziglang.vscode-zig diff --git a/config/VSCodium/User/keybindings.json b/config/VSCodium/User/keybindings.json new file mode 100644 index 00000000..58da7442 --- /dev/null +++ b/config/VSCodium/User/keybindings.json @@ -0,0 +1,303 @@ +[ + { + "key": "ctrl+shift+b", + "command": "workbench.action.toggleActivityBarVisibility" + }, + { + "key": "ctrl+shift+[Backslash]", + "command": "workbench.action.toggleStatusbarVisibility" + }, + { + "key": "ctrl+shift+i", + "command": "-editor.action.formatDocument.none", + "when": "editorTextFocus && !editorHasDocumentFormattingProvider && !editorReadonly" + }, + { + "key": "ctrl+meta+numpad_add", + "command": "editor.action.formatDocument", + "when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor" + }, + { + "key": "ctrl+shift+i", + "command": "-editor.action.formatDocument", + "when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor" + }, + { + "key": "ctrl+shift+m", + "command": "-workbench.actions.view.problems", + "when": "workbench.panel.markers.view.active" + }, + { + "key": "ctrl+numpad_divide", + "command": "bookmarks.toggle", + "when": "editorTextFocus" + }, + { + "key": "ctrl+alt+k", + "command": "-bookmarks.toggle", + "when": "editorTextFocus" + }, + { + "key": "ctrl+1", + "command": "-workbench.action.focusFirstEditorGroup" + }, + { + "key": "ctrl+1", + "command": "extension.liveServer.goOnline", + "when": "editorTextFocus" + }, + { + "key": "alt+l alt+o", + "command": "-extension.liveServer.goOnline", + "when": "editorTextFocus" + }, + { + "key": "shift+f11", + "command": "-workbench.action.debug.stepOut", + "when": "debugState == 'stopped'" + }, + { + "key": "f11 f11", + "command": "workbench.action.toggleZenMode" + }, + { + "key": "ctrl+k z", + "command": "-workbench.action.toggleZenMode" + }, + { + "key": "shift+f11", + "command": "workbench.action.debug.stepIntoTarget", + "when": "inDebugMode && stepIntoTargetsSupported && debugState == 'stopped'" + }, + { + "key": "ctrl+f11", + "command": "-workbench.action.debug.stepIntoTarget", + "when": "inDebugMode && stepIntoTargetsSupported && debugState == 'stopped'" + }, + { + "key": "ctrl+b", + "command": "-lineHighlightBookmark.toogleBookmarks", + "when": "editorTextFocus" + }, + { + "key": "ctrl+t", + "command": "-workbench.action.showAllSymbols" + }, + { + "key": "ctrl+\\", + "command": "workbench.action.terminal.toggleTerminal", + "when": "terminal.active" + }, + { + "key": "ctrl+`", + "command": "-workbench.action.terminal.toggleTerminal", + "when": "terminal.active" + }, + { + "key": "ctrl+alt+p", + "command": "workbench.action.showAllEditors" + }, + { + "key": "ctrl+k ctrl+p", + "command": "-workbench.action.showAllEditors" + }, + { + "key": "ctrl+shift+o", + "command": "workbench.action.files.openFolder", + "when": "openFolderWorkspaceSupport" + }, + { + "key": "ctrl+k ctrl+o", + "command": "-workbench.action.files.openFolder", + "when": "openFolderWorkspaceSupport" + }, + { + "key": "shift+alt+left", + "command": "-editor.action.smartSelect.shrink", + "when": "editorTextFocus" + }, + { + "key": "ctrl+shift+t", + "command": "workbench.action.toggleTabsVisibility" + }, + { + "key": "ctrl+shift+t", + "command": "-workbench.action.reopenClosedEditor" + }, + { + "key": "ctrl+shift+b", + "command": "-workbench.action.tasks.build", + "when": "taskCommandsRegistered" + }, + { + "key": "ctrl+k left", + "command": "-workbench.action.moveActiveEditorGroupLeft" + }, + { + "key": "ctrl+alt+left", + "command": "-workbench.action.moveEditorToPreviousGroup" + }, + { + "key": "ctrl+alt+right", + "command": "-workbench.action.moveEditorToNextGroup" + }, + { + "key": "ctrl+k right", + "command": "-workbench.action.moveActiveEditorGroupRight" + }, + { + "key": "ctrl+k up", + "command": "-workbench.action.moveActiveEditorGroupUp" + }, + { + "key": "ctrl+k down", + "command": "-workbench.action.moveActiveEditorGroupDown" + }, + { + "key": "ctrl+alt+down", + "command": "workbench.action.moveEditorToBelowGroup" + }, + { + "key": "ctrl+alt+up", + "command": "workbench.action.moveEditorToAboveGroup" + }, + { + "key": "ctrl+alt+left", + "command": "workbench.action.moveEditorToLeftGroup" + }, + { + "key": "ctrl+alt+right", + "command": "workbench.action.moveEditorToRightGroup" + }, + { + "key": "ctrl+m", + "command": "editor.action.toggleMinimap" + }, + { + "key": "ctrl+shift+m", + "command": "-rust-analyzer.matchingBrace", + "when": "editorTextFocus && editorLangId == 'rust'" + }, + { + "key": "ctrl+m", + "command": "-markdown.extension.editing.toggleMath", + "when": "editorTextFocus && !editorReadonly && editorLangId =~ /^markdown$|^rmd$|^quarto$/" + }, + { + "key": "ctrl+m", + "command": "-editor.action.toggleTabFocusMode" + }, + { + "key": "ctrl+d", + "command": "-vscode-neovim.ctrl-d", + "when": "editorTextFocus && neovim.ctrlKeysNormal && neovim.init && neovim.mode != 'insert'" + }, + { + "key": "ctrl+u", + "command": "-vscode-neovim.ctrl-u", + "when": "editorTextFocus && neovim.ctrlKeysNormal && neovim.init && neovim.mode != 'insert'" + }, + { + "key": "ctrl+f", + "command": "-vscode-neovim.ctrl-f", + "when": "editorTextFocus && neovim.ctrlKeysNormal && neovim.init && neovim.mode != 'insert'" + }, + { + "key": "ctrl+b", + "command": "-vscode-neovim.ctrl-b", + "when": "editorTextFocus && neovim.ctrlKeysNormal && neovim.init && neovim.mode != 'insert'" + }, + { + "command": "vscode-neovim.send", + "key": "ctrl+d", + "when": "editorTextFocus && neovim.init && neovim.mode != insert || neovim.recording", + "args": "" + }, + { + "command": "vscode-neovim.send", + "key": "ctrl+u", + "when": "editorTextFocus && neovim.init && neovim.mode != insert || neovim.recording", + "args": "" + }, + { + "command": "vscode-neovim.send", + "key": "ctrl+f", + "when": "editorTextFocus && neovim.init && neovim.mode != insert || neovim.recording", + "args": "" + }, + { + "command": "vscode-neovim.send", + "key": "ctrl+b", + "when": "editorTextFocus && neovim.init && neovim.mode != insert || neovim.recording", + "args": "" + }, + { + "key": "ctrl+d", + "command": "-vscode-neovim.ctrl-d", + "when": "editorTextFocus && neovim.ctrlKeysNormal && neovim.init && neovim.mode != 'insert'" + }, + { + "key": "ctrl+u", + "command": "-vscode-neovim.ctrl-u", + "when": "editorTextFocus && neovim.ctrlKeysNormal && neovim.init && neovim.mode != 'insert'" + }, + { + "key": "ctrl+f", + "command": "-vscode-neovim.ctrl-f", + "when": "editorTextFocus && neovim.ctrlKeysNormal && neovim.init && neovim.mode != 'insert'" + }, + { + "key": "ctrl+b", + "command": "-vscode-neovim.ctrl-b", + "when": "editorTextFocus && neovim.ctrlKeysNormal && neovim.init && neovim.mode != 'insert'" + }, + { + "command": "vscode-neovim.send", + "key": "ctrl+d", + "when": "editorTextFocus && neovim.init && neovim.mode != insert || neovim.recording", + "args": "" + }, + { + "command": "vscode-neovim.send", + "key": "ctrl+u", + "when": "editorTextFocus && neovim.init && neovim.mode != insert || neovim.recording", + "args": "" + }, + { + "command": "vscode-neovim.send", + "key": "ctrl+f", + "when": "editorTextFocus && neovim.init && neovim.mode != insert || neovim.recording", + "args": "" + }, + { + "command": "vscode-neovim.send", + "key": "ctrl+b", + "when": "editorTextFocus && neovim.init && neovim.mode != insert || neovim.recording", + "args": "" + }, + { + "key": "shift+h", + "command": "toggleexcludedfiles.toggle", + "when": "filesExplorerFocus" + }, + { + "key": "ctrl+shift+a", + "command": "-toggleexcludedfiles.toggle", + "when": "filesExplorerFocus" + }, + { + "key": "alt+enter", + "command": "-notebook.cell.executeAndInsertBelow", + "when": "notebookCellListFocused && notebookCellType == 'markup' || notebookCellListFocused && notebookMissingKernelExtension && !notebookCellExecuting && notebookCellType == 'code' || notebookCellListFocused && !notebookCellExecuting && notebookCellType == 'code' && notebookKernelCount > 0 || notebookCellListFocused && !notebookCellExecuting && notebookCellType == 'code' && notebookKernelSourceCount > 0" + }, + { + "key": "alt+enter", + "command": "editor.action.inlineSuggest.commit", + "when": "inlineSuggestionHasIndentationLessThanTabSize && inlineSuggestionVisible && !editorHoverFocused && !editorTabMovesFocus && !suggestWidgetVisible" + }, + { + "key": "tab", + "command": "-editor.action.inlineSuggest.commit", + "when": "inlineSuggestionHasIndentationLessThanTabSize && inlineSuggestionVisible && !editorHoverFocused && !editorTabMovesFocus && !suggestWidgetVisible" + }, +] \ No newline at end of file diff --git a/config/VSCodium/User/settings.json b/config/VSCodium/User/settings.json new file mode 100644 index 00000000..86ff684b --- /dev/null +++ b/config/VSCodium/User/settings.json @@ -0,0 +1,489 @@ +{ + // open json editor for settings + "workbench.settings.editor": "json", + // Theme + "workbench.colorTheme": "Catppuccin Macchiato", + "workbench.preferredDarkColorTheme": "Catppuccin Macchiato", + "workbench.iconTheme": "catppuccin-perfect-mocha", + "workbench.preferredHighContrastColorTheme": "Catppuccin Macchiato", + "catppuccin.accentColor": "lavender", + "catppuccin.extraBordersEnabled": true, + "catppuccin.italicComments": true, + "catppuccin.boldKeywords": true, + "catppuccin.italicKeywords": false, + // Font + "editor.fontFamily": "JetBrainsMono Nerd Font", + "editor.inlayHints.fontFamily": "JetBrainsMono Nerd Font", + "terminal.integrated.fontFamily": "JetBrainsMono Nerd Font", + "scm.inputFontFamily": "JetBrainsMono Nerd Font", + "chat.editor.fontFamily": "JetBrainsMono Nerd Font", + "debug.console.fontFamily": "JetBrainsMono Nerd Font", + "editor.codeLensFontFamily": "JetBrainsMono Nerd Font", + "notebook.output.fontFamily": "JetBrainsMono Nerd Font", + "markdown.preview.fontFamily": "JetBrainsMono Nerd Font", + "errorLens.fontFamily": "JetBrainsMono Nerd Font", + "editor.fontLigatures": true, + "editor.fontSize": 14, + "terminal.integrated.fontSize": 14, + // UI + "editor.stickyScroll.enabled": true, + "window.commandCenter": false, + "editor.lineNumbers": "relative", + "window.menuBarVisibility": "toggle", + "editor.minimap.enabled": false, + "editor.overviewRulerBorder": false, + "workbench.editor.enablePreviewFromCodeNavigation": true, + "workbench.view.alwaysShowHeaderActions": true, + "workbench.startupEditor": "none", + "editor.scrollbar.horizontal": "hidden", + "editor.hideCursorInOverviewRuler": true, + "workbench.editor.empty.hint": "hidden", + "workbench.editor.tabActionCloseVisibility": false, + "markdown-preview-github-styles.lightTheme": "dark", + "markdown-preview-github-styles.colorTheme": "dark", + "editor.matchBrackets": "never", + "files.trimTrailingWhitespace": true, + "editor.foldingImportsByDefault": true, + "editor.guides.bracketPairs": true, + "editor.guides.highlightActiveIndentation": true, + "editor.guides.bracketPairsHorizontal": "active", + "cSpell.language": "en, es", + "search.followSymlinks": false, + "workbench.editor.showTabs": "multiple", + "explorer.compactFolders": false, + "breadcrumbs.filePath": "off", + "editor.bracketPairColorization.enabled": true, + "editor.scrollbar.vertical": "hidden", + "editor.wordWrap": "off", + "errorLens.fontStyleItalic": true, + // Misc + "codeium.enableCodeLens": false, + "git.openRepositoryInParentFolders": "never", + "editor.linkedEditing": true, + "git.closeDiffOnOperation": true, + "workbench.editor.scrollToSwitchTabs": true, + "editor.inlayHints.enabled": "on", + "editor.autoClosingBrackets": "always", + "diffEditor.codeLens": true, + "editor.suggest.preview": true, + "debug.allowBreakpointsEverywhere": true, + "editor.suggest.matchOnWordStartOnly": false, + "editor.mouseWheelZoom": true, + "codeium.enableSearch": true, + "workbench.editor.splitInGroupLayout": "vertical", + "files.associations": { + ".env*": "dotenv" + }, + "update.mode": "manual", + "editor.codeActionsOnSave": { + "source.addMissingImports": "explicit", + "source.organizeImports": "explicit" + }, + "editor.formatOnSave": true, + // APC + "apc.electron": { + "titleBarStyle": "hidden" + }, + "window.titleBarStyle": "native", + "apc.activityBar": { + "position": "bottom", + "hideSettings": true, + "size": 26 + }, + "apc.font.family": "JetBrainsMono Nerd Font", + "apc.monospace.font.family": "JetBrainsMono Nerd Font", + "apc.statusBar": { + "position": "editor-bottom", + "height": 23, + "fontSize": 12 + }, + // Custom css + "apc.stylesheet": { + ".title-actions": "display: none !important", + ".tabs-and-actions-container > .editor-actions": "display: none !important", + ".titlebar-center": "display: none !important", + ".titlebar-right": "display: none !important", + ".inline-tabs-placeholder": "display: none !important" + }, + // Neovim + "extensions.experimental.affinity": { + "asvetliakov.vscode-neovim": 1 + }, + // Project Manager + "projectManager.git.baseFolders": [ + "/home/matt/Repos/Work", + "/home/matt/Repos/Personal", + "/home/matt/Repos/Community", + "/home/matt/Repos/Class" + ], + "projectManager.sortList": "Recent", + // Smooth movement + "editor.cursorSmoothCaretAnimation": "on", + "workbench.list.smoothScrolling": true, + "terminal.integrated.smoothScrolling": true, + "editor.cursorBlinking": "smooth", + "editor.smoothScrolling": true, + // Animations + "animations.Enabled": true, + "animations.Active": "Indent", + "animations.Scrolling": "Slide", + "animations.Durations": { + "Command-Palette": 400, + "Scrolling": 300, + "Active": 200, + "Smooth-Mode": 300, + "Tabs": 300 + }, + "animations.Smooth-Mode": true, + "animations.Install-Method": "Apc Customize UI++", + "apc.imports": [ + "file:///home/matt/.vscode-oss/extensions/brandonkirbyson.vscode-animations-2.0.1/dist/updateHandler.js" + ], + // Language specific + "markdown.preview.scrollEditorWithPreview": true, + "markdown.preview.scrollPreviewWithEditor": true, + "Lua.codeLens.enable": true, + "html.format.enable": true, + "json.format.enable": true, + "javascript.format.enable": true, + "redhat.telemetry.enabled": false, + "javascript.updateImportsOnFileMove.enabled": "always", + "typescript.updateImportsOnFileMove.enabled": "always", + "vue.updateImportsOnFileMove.enabled": true, + "[json]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[javascript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode", + "javascript.preferences.importModuleSpecifier": "relative" + }, + "[typescript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode", + "typescript.preferences.importModuleSpecifier": "relative" + }, + "[javascriptreact]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[typescriptreact]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[vue]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[css]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[scss]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[less]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[html]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[jsonc]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[yaml]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[markdown]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[graphql]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[handlebars]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[python]": { + "editor.defaultFormatter": "charliermarsh.ruff" + }, + // File explorer + // Terminal + "terminal.integrated.cursorBlinking": true, + "terminal.external.linuxExec": "kitty", + "terminal.integrated.cursorStyle": "line", + "terminal.integrated.defaultProfile.linux": "fish", + "terminal.integrated.gpuAcceleration": "on", + "terminal.integrated.shellIntegration.suggestEnabled": true, + "terminal.integrated.enableImages": true, + "terminal.explorerKind": "external", + "terminal.integrated.env.linux": {}, + // Zen mode + "zenMode.showTabs": "none", + "zenMode.hideLineNumbers": false, + "zenMode.silentNotifications": false, + "zenMode.fullScreen": false, + // Error lens + "errorLens.errorGutterIconColor": "#ED8796", + "errorLens.searchForProblemQuery": "https://search.brave.com/search?q=$message", + "errorLens.warningGutterIconColor": "#EED49F", + // Colorize + "colorize.include": [ + "**/*.lua", + "**/*.cs", + "**/*.css", + "**/*.scss", + "**/*.sass", + "**/*.less", + "**/*.styl", + "**/*.xml", + "**/*.svg", + "**/*.json", + "**/*.js", + "**/*.java", + "**/*.kt", + "**/*.cpp", + "**/*.rasi" + ], + "colorize.languages": [ + "css", + "sass", + "scss", + "less", + "postcss", + "sss", + "stylus", + "xml", + "svg", + "json", + "javascript", + "java", + "c", + "rasi", + "markdown" + ], + // Toggle excluded files + "files.exclude": { + "**/.git": true, + "**/.svn": true, + "**/.hg": true, + "**/CVS": true, + "**/.DS_Store": true, + "**/Thumbs.db": true, + "**/node_modules": true, + "**/.next": true, + "**/.husky": true, + "**/drizzle": true, + "**/dist": true, + "**/.todo.md": true, + "**/.vscode": true, + "**/.eslintrc.cjs": true, + "**/.editorconfig": true, + "**/.gitignore": true, + "**/.lintstagedrc.mjs": true, + "**/.markdownlint.json": true, + "**/.markdownlintignore": true, + "**/.prettierignore": true, + "**/bun.lockb": true, + "**/cspell.json": true, + "**/package-lock.json": true, + "**/pnpm-lock.yaml": true, + "**/next-env.d.ts": true, + "**/postcss.config.cjs": true, + "**/prettier.config.js": true, + "**/README.md": true, + "**/next.config.js": true, + "**/tailwind.config.ts": true, + "**/drizzle.config.ts": true, + "**/migrate.ts": true, + "**/.env.example": true + }, + "commentAnchors.workspace.lazyLoad": false, + "commentAnchors.tags.anchors": { + // General Anchors + "ANCHOR": { + "iconColor": "default", + "highlightColor": "#A8C023", + "scope": "file", + "isItalic": true, + "isBold": true, + "styleMode": "full" + }, + "TODO": { + "iconColor": "#91d7e3", + "highlightColor": "#91d7e3", + "scope": "workspace", + "isItalic": true, + "isBold": true, + "styleMode": "full" + }, + + // FIX Anchors + "FIXME": { + "iconColor": "#ed8796", + "highlightColor": "#ed8796", + "scope": "workspace", + "isItalic": true, + "styleMode": "full" + }, + "FIX": { + "iconColor": "#ed8796", + "highlightColor": "#ed8796", + "scope": "workspace", + "isItalic": true, + "isBold": true, + "styleMode": "full" + }, + "BUG": { + "iconColor": "#ed8796", + "highlightColor": "#ed8796", + "scope": "workspace", + "isItalic": true, + "styleMode": "full" + }, + "FIXIT": { + "iconColor": "#ed8796", + "highlightColor": "#ed8796", + "scope": "workspace", + "isItalic": true, + "styleMode": "full" + }, + "ISSUE": { + "iconColor": "#ed8796", + "highlightColor": "#ed8796", + "scope": "workspace", + "isItalic": true, + "styleMode": "full" + }, + + // NOTE Anchors + "INFO": { + "iconColor": "#8bd5ca", + "highlightColor": "#8bd5ca", + "scope": "workspace", + "isItalic": true, + "styleMode": "full" + }, + "NOTE": { + "iconColor": "#8bd5ca", + "highlightColor": "#8bd5ca", + "scope": "workspace", + "isItalic": true, + "isBold": true, + "styleMode": "full" + }, + + // Other Anchors + "HACK": { + "iconColor": "#eed49f", + "highlightColor": "#eed49f", + "scope": "workspace", + "isItalic": true, + "styleMode": "full" + }, + + // Warning Anchors + "XXX": { + "iconColor": "#eed49f", + "highlightColor": "#eed49f", + "scope": "workspace", + "isItalic": true, + "styleMode": "full" + }, + "WARNING": { + "iconColor": "#eed49f", + "highlightColor": "#eed49f", + "scope": "workspace", + "isItalic": true, + "styleMode": "full" + }, + "WARN": { + "iconColor": "#eed49f", + "highlightColor": "#eed49f", + "scope": "workspace", + "isItalic": true, + "isBold": true, + "styleMode": "full" + }, + + // Performance Anchors + "OPTIM": { + "iconColor": "#f0c6c6", + "highlightColor": "#f0c6c6", + "scope": "workspace", + "isItalic": true, + "styleMode": "full" + }, + "PERFORMANCE": { + "iconColor": "#f0c6c6", + "highlightColor": "#f0c6c6", + "scope": "workspace", + "isItalic": true, + "styleMode": "full" + }, + "OPTIMIZE": { + "iconColor": "#f0c6c6", + "highlightColor": "#f0c6c6", + "scope": "workspace", + "isItalic": true, + "styleMode": "full" + }, + "PERF": { + "iconColor": "#f0c6c6", + "highlightColor": "#f0c6c6", + "scope": "workspace", + "isItalic": true, + "isBold": true, + "styleMode": "full" + }, + + // Testing Anchors + "PASSED": { + "iconColor": "#f0c6c6", + "highlightColor": "#f0c6c6", + "scope": "workspace", + "isItalic": true, + "styleMode": "full" + }, + "FAILED": { + "iconColor": "#f0c6c6", + "highlightColor": "#f0c6c6", + "scope": "workspace", + "isItalic": true, + "styleMode": "full" + }, + "TESTING": { + "iconColor": "#f0c6c6", + "highlightColor": "#f0c6c6", + "scope": "workspace", + "isItalic": true, + "styleMode": "full" + }, + "TEST": { + "iconColor": "#f0c6c6", + "highlightColor": "#f0c6c6", + "scope": "workspace", + "isItalic": true, + "isBold": true, + "styleMode": "full" + }, + "REVIEW": { + "iconColor": "#a6da95", + "highlightColor": "#a6da95", + "scope": "workspace", + "isItalic": true, + "styleMode": "full" + }, + + // Dividing Anchors + "SECTION": { + "iconColor": "#f5bde6", + "highlightColor": "#f5bde6", + "scope": "workspace", + "behavior": "region", + "isItalic": true, + "styleMode": "full" + }, + "LINK": { + "iconColor": "#f5a97f", + "highlightColor": "#f5a97f", + "scope": "workspace", + "behavior": "link", + "isItalic": true, + "styleMode": "full" + } + } +} diff --git a/config/VSCodium/User/snippets/css.json b/config/VSCodium/User/snippets/css.json new file mode 100644 index 00000000..835896fe --- /dev/null +++ b/config/VSCodium/User/snippets/css.json @@ -0,0 +1,13 @@ +{ + "ignore (prettier)": { + "body": "/* prettier-ignore */", + "prefix": "ignore (prettier)" + }, + "ignore range (stylelint)": { + "body": [ + "/* stylelint-disable ${1:no-duplicate-selectors} */", + "/* stylelint-enable ${1:no-duplicate-selectors} */" + ], + "prefix": "ignore range (stylelint)" + } +} diff --git a/config/VSCodium/User/snippets/global.json b/config/VSCodium/User/snippets/global.json new file mode 100644 index 00000000..96e7c982 --- /dev/null +++ b/config/VSCodium/User/snippets/global.json @@ -0,0 +1,6 @@ +{ + "nonbreaking space": { + "body": " ", + "prefix": "nonbreaking space" + } +} diff --git a/config/VSCodium/User/snippets/lua.json b/config/VSCodium/User/snippets/lua.json new file mode 100644 index 00000000..f7e8a981 --- /dev/null +++ b/config/VSCodium/User/snippets/lua.json @@ -0,0 +1,50 @@ +{ + "@class (LuaDoc)": { + "body": [ + "---@class (exact) ${1:class_name}", + "---@field ${2:field_name} string", + "---@field ${3:field_name} string" + ], + "description": "https://github.com/LuaLS/lua-language-server/wiki/Annotations#class", + "prefix": "@class (LuaDoc)" + }, + "@type (LuaDoc)": { + "body": "---@type ${1:string}", + "prefix": "@type (LuaDoc)" + }, + "export module": { + "body": [ + "local M = {}", + "--------------------------------------------------------------------------------", + "", + "$0--------------------------------------------------------------------------------", + "return M" + ], + "prefix": "export module" + }, + "find all in string": { + "body": [ + "local ${1:matches} = {}", + "for match in ${2:str}:gmatch(${3:pattern}) do", + "\ttable.insert(${1:matches}, match)", + "end" + ], + "prefix": "find all in string" + }, + "home": { + "body": "os.getenv(\"HOME\")", + "prefix": "home" + }, + "ignore (stylua)": { + "body": "-- stylua: ignore", + "prefix": "ignore (stylua)" + }, + "ignore start/end (stylua)": { + "body": ["-- stylua: ignore start", "-- stylua: ignore end"], + "prefix": "ignore start/end (stylua)" + }, + "import module": { + "body": "local ${1:name} = require(\"${2:module}.${1:name}\")", + "prefix": "import module" + } +} diff --git a/config/VSCodium/User/snippets/markdown.json b/config/VSCodium/User/snippets/markdown.json new file mode 100644 index 00000000..10dad64e --- /dev/null +++ b/config/VSCodium/User/snippets/markdown.json @@ -0,0 +1,72 @@ +{ + "caution (callout)": { + "body": [ + "> [!CAUTION]", + "> $0" + ], + "description": "https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts", + "prefix": "caution (callout)" + }, + "centerdiv": { + "body": "
$0
", + "prefix": "centerdiv" + }, + "details & summary": { + "body": [ + "
", + "${1:Text}", + "$0", + "
" + ], + "description": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details", + "prefix": [ + "toggle / fold", + "details & summary" + ] + }, + "div": { + "body": "
$0
", + "description": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div", + "prefix": "div" + }, + "image": { + "body": "\"${2:alt", + "description": "HTML syntax for images used to display images with reduced size", + "prefix": "image" + }, + "important (callout)": { + "body": [ + "> [!IMPORTANT]", + "> $0" + ], + "description": "https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts", + "prefix": "important (callout)" + }, + "note (callout)": { + "body": [ + "> [!NOTE]", + "> $0" + ], + "description": "https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts", + "prefix": [ + "info (callout)", + "note (callout)" + ] + }, + "tip (callout)": { + "body": [ + "> [!TIP]", + "> $0" + ], + "description": "https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts", + "prefix": "tip (callout)" + }, + "warning (callout)": { + "body": [ + "> [!WARNING]", + "> $0" + ], + "description": "https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts", + "prefix": "warning (callout)" + } +} diff --git a/config/VSCodium/User/snippets/python/python.json b/config/VSCodium/User/snippets/python/python.json new file mode 100644 index 00000000..01932eee --- /dev/null +++ b/config/VSCodium/User/snippets/python/python.json @@ -0,0 +1,19 @@ +{ + "list comprehension": { + "body": "list(${1:value} for ${2:value} in ${3:iterable})$0", + "description": "List comprehension for creating a list based on existing lists.", + "prefix": "list comprehension" + }, + "replace (regex)": { + "body": "re.sub(r\"${1:regex}\", r\"${2:replace}\", ${3:str})$0", + "prefix": "replace (regex)" + }, + "ternary": { + "body": "${1:value1} if ${2:condition} else ${3:value2}", + "prefix": "ternary" + }, + "while": { + "body": "while ${1:condition}:\n\t${2:pass}$0", + "prefix": "while" + } +} diff --git a/config/hypr/UserConfigs/WindowRules.conf b/config/hypr/UserConfigs/WindowRules.conf index 65a4cb30..0fda2e7d 100644 --- a/config/hypr/UserConfigs/WindowRules.conf +++ b/config/hypr/UserConfigs/WindowRules.conf @@ -129,7 +129,7 @@ windowrulev2 = center, title:(.*Save File.*) # VS Code -windowrulev2 = workspace 2, class:(Code) +windowrulev2 = workspace 2, class:^(.*Code.*)$|(.*codium.*)$ windowrulev2 = opacity 0.9 0.6, class:(Code) diff --git a/config/hypr/UserScripts/QuickEdit.sh b/config/hypr/UserScripts/QuickEdit.sh index 93851874..73ecf770 100755 --- a/config/hypr/UserScripts/QuickEdit.sh +++ b/config/hypr/UserScripts/QuickEdit.sh @@ -17,7 +17,7 @@ menu(){ } main() { - choice=$(menu | rofi -dmenu -i -l 7 -p " View / Edit Hyprland Configs:" -config ~/.config/rofi/config-compact.rasi | cut -d. -f1) + choice=$(menu | rofi -dmenu -i -l 9 -p " View / Edit Hyprland Configs:" -config ~/.config/rofi/config.rasi | cut -d. -f1) case $choice in 1) kitty -e nano "$UserConfigs/ENVariables.conf" diff --git a/config/hypr/scripts/Caway.sh b/config/hypr/scripts/Caway.sh new file mode 100755 index 00000000..05d26742 --- /dev/null +++ b/config/hypr/scripts/Caway.sh @@ -0,0 +1,120 @@ +#!/usr/bin/bash + +# Nuke all internal spawns when script dies +trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM + +BARS=8 +FRAMERATE=60 +EQUILIZER=1 + +# Get script options +while getopts 'b:f:m:eh' flag; do + case "${flag}" in + b) BARS="${OPTARG}" ;; + f) FRAMERATE="${OPTARG}" ;; + e) EQUILIZER=0 ;; + h) + echo "caway usage: caway [ options ... ]" + echo "where options include:" + echo + echo " -b (Number of bars to display. Default 8)" + echo " -f (Framerate of the equilizer. Default 60)" + echo " -e (Disable equilizer. Default enabled)" + echo " -h (Show help message)" + exit 0 + ;; + esac +done + +bar="β–β–‚β–ƒβ–„β–…β–†β–‡β–ˆ" +dict="s/;//g;" + +# creating "dictionary" to replace char with bar + thin space " " +i=0 +while [ $i -lt ${#bar} ]; do + dict="${dict}s/$i/${bar:$i:1} /g;" + i=$((i=i+1)) +done + +# Remove last extra thin space +dict="${dict}s/.$//;" + +clean_create_pipe() { + if [ -p "$1" ]; then + unlink "$1" + fi + mkfifo "$1" +} + +kill_pid_file() { + if [[ -f "$1" ]]; then + while read -r pid; do + kill "$pid" && wait "$pid" 2>/dev/null + done < "$1" + fi +} + +# PID of the cava process and while loop launched from the script +cava_waybar_pid="/tmp/cava_waybar_pid" + +# Clean pipe for cava +cava_waybar_pipe="/tmp/cava_waybar.fifo" +clean_create_pipe "$cava_waybar_pipe" + +# Custom cava config +cava_waybar_config="/tmp/cava_waybar_config" +cat > "$cava_waybar_config" < "$playerctl_waybar_pipe" & + +# Read the playerctl o/p via its fifo pipe +while read -r line; do + # Kill the cava process to stop the input to cava_waybar_pipe + kill_pid_file "$cava_waybar_pid" + + # Move these outside the loop + cava_cmd="cava -p $cava_waybar_config > $cava_waybar_pipe &" + jq_cmd="jq --arg a \$(echo \$cmd2 | sed \"$dict\") '.text = \$a' --unbuffered --compact-output" + + echo "$line" | eval "$jq_cmd" + + # If the class says "Playing" and equilizer is enabled + # then show the cava equilizer + if [ "$EQUILIZER" == 1 ] && [ "$(echo "$line" | jq -r '.class')" == 'Playing' ]; then + + # cava output into cava_waybar_pipe + eval "$cava_cmd" + + # Save the PID of child process + echo $! > "$cava_waybar_pid" + + # Read the cava o/p via its fifo pipe + cava_output() { + while read -r cmd2; do + # Change the "text" key to bars + echo "$line" | eval "$jq_cmd" + done < "$cava_waybar_pipe" & + } + + cava_output & + + # Save the while loop PID into the file as well + echo $! >> "$cava_waybar_pid" + fi +done < "$playerctl_waybar_pipe" diff --git a/config/hypr/scripts/ClipManager.sh b/config/hypr/scripts/ClipManager.sh index 6e22e605..1da94194 100755 --- a/config/hypr/scripts/ClipManager.sh +++ b/config/hypr/scripts/ClipManager.sh @@ -1,24 +1,40 @@ #!/bin/bash -# Clipboard Manager. This needed cliphist & wl-copy and of course rofi +# Clipboard Manager. This script uses cliphist, rofi, and wl-copy. + +# Actions: +# CTRL Del to delete an entry +# ALT Del to wipe clipboard contents while true; do - if pidof rofi &> /dev/null; then - pkill rofi - fi + result=$( + rofi -dmenu \ + -kb-custom-1 "Control-Delete" \ + -kb-custom-2 "Alt-Delete" \ + -p "CTRL Del - Cliphist del || Alt Del - cliphist wipe" \ + -config ~/.config/rofi/config-long.rasi < <(cliphist list) + ) - result=$(cliphist list | rofi -kb-custom-1 "Ctrl+Delete" -dmenu -config ~/.config/rofi/config-long.rasi) - exit_state=$? - - [[ $exit_state -eq 1 ]] && break - - case "$exit_state" in - 0) - cliphist decode <<<"$result" | wl-copy + case "$?" in + 1) exit ;; + 0) + case "$result" in + "") + continue + ;; + *) + cliphist decode <<<"$result" | wl-copy + exit + ;; + esac + ;; 10) cliphist delete <<<"$result" ;; + 11) + cliphist wipe + ;; esac done diff --git a/config/hypr/scripts/RofiEmoji.sh b/config/hypr/scripts/RofiEmoji.sh index a9290094..d530725a 100755 --- a/config/hypr/scripts/RofiEmoji.sh +++ b/config/hypr/scripts/RofiEmoji.sh @@ -3,7 +3,7 @@ # Rofi Emoticons. Not my own. Cant remember the source sed '1,/^### DATA ###$/d' $0 | -rofi -dmenu -config ~/.config/rofi/config-long.rasi| +rofi -dmenu -p "πŸ”Ž Search" -config ~/.config/rofi/config-long.rasi| cut -d ' ' -f 1 | tr -d '\n' | wl-copy exit diff --git a/config/hypr/scripts/WaybarCava.sh b/config/hypr/scripts/WaybarCava.sh deleted file mode 100755 index 96126bed..00000000 --- a/config/hypr/scripts/WaybarCava.sh +++ /dev/null @@ -1,33 +0,0 @@ -# #! /bin/bash - - -#----- Optimized bars animation without much CPU usage increase -------- -bar="β–β–‚β–ƒβ–„β–…β–†β–‡β–ˆ" -dict="s/;//g" - -# Calculate the length of the bar outside the loop -bar_length=${#bar} - -# Create dictionary to replace char with bar -for ((i = 0; i < bar_length; i++)); do - dict+=";s/$i/${bar:$i:1}/g" -done - -# Create cava config -config_file="/tmp/bar_cava_config" -cat >"$config_file" <About @@ -19,6 +20,7 @@ - [tzachar/cmp-tabnine](https://github.com/tzachar/cmp-tabnine) - [jackMort/ChatGPT.nvim](https://dotfyle.com/plugins/jackMort/ChatGPT.nvim) - [zbirenbaum/copilot.lua](https://dotfyle.com/plugins/zbirenbaum/copilot.lua) +- [David-Kunz/gen.nvim](https://dotfyle.com/plugins/David-Kunz/gen.nvim) @@ -301,6 +303,7 @@ - [andweeb/presence.nvim](https://dotfyle.com/plugins/andweeb/presence.nvim) - [edluffy/hologram.nvim](https://dotfyle.com/plugins/edluffy/hologram.nvim) +- [ellisonleao/carbon-now.nvim](https://dotfyle.com/plugins/ellisonleao/carbon-now.nvim) @@ -357,6 +360,13 @@ +
+🏠 Remote-development> + +- [esensar/nvim-dev-container](https://dotfyle.com/plugins/esensar/nvim-dev-container) + +
+
πŸ“œ Scrollbar-Scrolling @@ -377,7 +387,6 @@
🐌 Snippet -- [TobinPalmer/rayso.nvim](https://dotfyle.com/plugins/TobinPalmer/rayso.nvim) - [L3MON4D3/LuaSnip](https://dotfyle.com/plugins/L3MON4D3/LuaSnip) - [chrisgrieser/nvim-scissors](https://dotfyle.com/plugins/chrisgrieser/nvim-scissors) - [mrcjkb/haskell-snippets.nvim](https://dotfyle.com/plugins/mrcjkb/haskell-snippets.nvim) @@ -618,17 +627,9 @@ | ----------------------------------------------- | | ![find-files](./overview-images/find-files.png) | -
- -| **Neo-tree** | -| ------------------------------------------- | -| ![neo-tree](./overview-images/neo-tree.png) | - -| **Symbols Outline** | -| ----------------------------------------- | -| ![outline](./overview-images/outline.png) | - -
+| **Neo-tree** | **Symbols Outline** | +| ------------------------------------------- | ----------------------------------------- | +| ![neo-tree](./overview-images/neo-tree.png) | ![outline](./overview-images/outline.png) | | **Bufferline** | | ----------------------------------------------- | diff --git a/config/nvim/.github/overview-images/lualine.png b/config/nvim/.github/overview-images/lualine.png index 72ec93c7..90060694 100644 Binary files a/config/nvim/.github/overview-images/lualine.png and b/config/nvim/.github/overview-images/lualine.png differ diff --git a/config/nvim/.github/overview-images/which-key.png b/config/nvim/.github/overview-images/which-key.png index e1f37449..2f1e7c70 100644 Binary files a/config/nvim/.github/overview-images/which-key.png and b/config/nvim/.github/overview-images/which-key.png differ diff --git a/config/nvim/after/ftplugin/javascriptreact.lua b/config/nvim/after/ftplugin/javascriptreact.lua new file mode 100644 index 00000000..458f3e8b --- /dev/null +++ b/config/nvim/after/ftplugin/javascriptreact.lua @@ -0,0 +1,16 @@ +-- Automatically end a self-closing tag when pressing / +vim.keymap.set("i", "/", function() + local node = vim.treesitter.get_node() + if not node then + return "/" + end + + if node:type() == "jsx_opening_element" then + local char_at_cursor = vim.fn.strcharpart(vim.fn.strpart(vim.fn.getline("."), vim.fn.col(".") - 2), 0, 1) + local already_have_space = char_at_cursor == " " + + return already_have_space and "/>" or " />" + end + + return "/" +end, { expr = true, buffer = true }) diff --git a/config/nvim/after/ftplugin/json.lua b/config/nvim/after/ftplugin/json.lua index b58d3e11..fcaaccd4 100644 --- a/config/nvim/after/ftplugin/json.lua +++ b/config/nvim/after/ftplugin/json.lua @@ -1 +1,13 @@ vim.opt.conceallevel = 0 + +-- When creating a new line with o, make sure there is a trailing comma on the current line +vim.keymap.set("n", "o", function() + local line = vim.api.nvim_get_current_line() + + local should_add_comma = string.find(line, "[^,{[]$") + if should_add_comma then + return "A," + else + return "o" + end +end, { buffer = true, expr = true }) diff --git a/config/nvim/after/ftplugin/jsonc.lua b/config/nvim/after/ftplugin/jsonc.lua index b58d3e11..fcaaccd4 100644 --- a/config/nvim/after/ftplugin/jsonc.lua +++ b/config/nvim/after/ftplugin/jsonc.lua @@ -1 +1,13 @@ vim.opt.conceallevel = 0 + +-- When creating a new line with o, make sure there is a trailing comma on the current line +vim.keymap.set("n", "o", function() + local line = vim.api.nvim_get_current_line() + + local should_add_comma = string.find(line, "[^,{[]$") + if should_add_comma then + return "A," + else + return "o" + end +end, { buffer = true, expr = true }) diff --git a/config/nvim/after/ftplugin/typescriptreact.lua b/config/nvim/after/ftplugin/typescriptreact.lua new file mode 100644 index 00000000..458f3e8b --- /dev/null +++ b/config/nvim/after/ftplugin/typescriptreact.lua @@ -0,0 +1,16 @@ +-- Automatically end a self-closing tag when pressing / +vim.keymap.set("i", "/", function() + local node = vim.treesitter.get_node() + if not node then + return "/" + end + + if node:type() == "jsx_opening_element" then + local char_at_cursor = vim.fn.strcharpart(vim.fn.strpart(vim.fn.getline("."), vim.fn.col(".") - 2), 0, 1) + local already_have_space = char_at_cursor == " " + + return already_have_space and "/>" or " />" + end + + return "/" +end, { expr = true, buffer = true }) diff --git a/config/nvim/lazy-lock.json b/config/nvim/lazy-lock.json index ac6f5105..ec792799 100644 --- a/config/nvim/lazy-lock.json +++ b/config/nvim/lazy-lock.json @@ -1,7 +1,7 @@ { "LazyVim": { "branch": "main", "commit": "879e29504d43e9f178d967ecc34d482f902e5a91" }, - "LuaSnip": { "branch": "master", "commit": "82108e7e31cc6fc223cc5df5cae6d89f70bb199f" }, - "SchemaStore.nvim": { "branch": "main", "commit": "d9de9914da37b54a53edec6923e1893c2262e236" }, + "LuaSnip": { "branch": "master", "commit": "2dbef19461198630b3d7c39f414d09fb07d1fdd2" }, + "SchemaStore.nvim": { "branch": "main", "commit": "015f5a51b95fef2828e8739a17c42c93877a3c90" }, "actions-preview.nvim": { "branch": "master", "commit": "dd63df1a4ed0ffe1458945ee50ecb1dd02b605ab" }, "animation.nvim": { "branch": "main", "commit": "fb77091ab72ec9971aee0562e7081182527aaa6a" }, "autolist.nvim": { "branch": "main", "commit": "5f70a5f99e96c8fe3069de042abd2a8ed2deb855" }, @@ -11,34 +11,38 @@ "ccc.nvim": { "branch": "main", "commit": "ec6e23fd2c0bf4ffcf71c1271acdcee6e2c6f49c" }, "cinnamon.nvim": { "branch": "master", "commit": "c406ffda3a0302f32c23b24ab756ea20467d6578" }, "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, + "cmp-dotenv": { "branch": "main", "commit": "fd78929551010bc20602e7e663e42a5e14d76c96" }, "cmp-nvim-lsp": { "branch": "main", "commit": "5af77f54de1b16c34b23cba810150689a3a90312" }, "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, + "cmp-under-comparator": { "branch": "master", "commit": "6857f10272c3cfe930cece2afa2406e1385bfef8" }, "cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" }, "codeium.vim": { "branch": "main", "commit": "4063291e335e74e9ee2be04beb47d40b376312fa" }, - "comment-box.nvim": { "branch": "main", "commit": "c0166bf14ed00a2301e4f265544d4252d48170cc" }, + "comment-box.nvim": { "branch": "main", "commit": "a5dbf397b81914ed4c2e3bf0785a0b482ace9183" }, "compiler.nvim": { "branch": "main", "commit": "e82a48e9528edc769b1329b753eb9e3926f25595" }, - "conform.nvim": { "branch": "master", "commit": "75e7c5c7eb5fbd53f8b12dc420b31ec70770b231" }, - "crates.nvim": { "branch": "main", "commit": "ad837c525c07f228179352e1629c902b3cc0efb1" }, + "conform.nvim": { "branch": "master", "commit": "cbc5745bf7519acaf3a5cbaaa677fd556aa813d7" }, + "crates.nvim": { "branch": "main", "commit": "b9d68ba054e184dd158cbfd375574d24269232a9" }, "dashboard-nvim": { "branch": "master", "commit": "63df28409d940f9cac0a925df09d3dc369db9841" }, "debugprint.nvim": { "branch": "main", "commit": "13378f67edc112bf0d043bc0c018f8923dc2198d" }, "dial.nvim": { "branch": "master", "commit": "27eb570085db2ef44bff4f620d3806039184651c" }, "diffview.nvim": { "branch": "main", "commit": "3dc498c9777fe79156f3d32dddd483b8b3dbd95f" }, - "dooku.nvim": { "branch": "main", "commit": "0d471187f512c1fd96ed8c0a70df61a0473f8cca" }, - "dressing.nvim": { "branch": "master", "commit": "94b0d24483d56f3777ee0c8dc51675f21709318c" }, - "dropbar.nvim": { "branch": "master", "commit": "104e664dfa7e974e93200298f806d2da967c5dd0" }, + "dooku.nvim": { "branch": "main", "commit": "632ac0e27a96e77d8be47c42583fb58c3be9d85f" }, + "dressing.nvim": { "branch": "master", "commit": "c1179336aaeca82a785cade27e9b7b276af3222e" }, + "dropbar.nvim": { "branch": "master", "commit": "0383ce9122e698360f19526e024348ae5bbc63ca" }, "edgy.nvim": { "branch": "main", "commit": "8355be45610afdf79a0bab32b91ee297997455b4" }, - "esqueleto.nvim": { "branch": "main", "commit": "4a363d3bbc513507ba89f2ab3bcbc8a34280970e" }, "flash.nvim": { "branch": "main", "commit": "48817af25f51c0590653bbc290866e4890fe1cbe" }, "friendly-snippets": { "branch": "main", "commit": "69a2c1675b66e002799f5eef803b87a12f593049" }, "garbage-day.nvim": { "branch": "main", "commit": "957499b8a493974bd7002b68b1f15f7d285e0dd1" }, "git-worktree.nvim": { "branch": "master", "commit": "f247308e68dab9f1133759b05d944569ad054546" }, "gitsigns.nvim": { "branch": "main", "commit": "4aaacbf5e5e2218fd05eb75703fe9e0f85335803" }, "glance.nvim": { "branch": "master", "commit": "8ed5cf3b3b1231ea696d88c9efd977027429d869" }, + "go.nvim": { "branch": "master", "commit": "24d2fa373d55d9900cd4b502a88214dc17e6fab6" }, + "guihua.lua": { "branch": "master", "commit": "9fb6795474918b492d9ab01b1ebaf85e8bf6fe0b" }, "harpoon": { "branch": "harpoon2", "commit": "2cd4e03372f7ee5692c8caa220f479ea07970f17" }, "headlines.nvim": { "branch": "master", "commit": "e3d7bfdf40e41a020d966d35f8b48d75b90367d2" }, "highlight-undo.nvim": { "branch": "main", "commit": "50a6884a8476be04ecce8f1c4ed692c5000ef0a1" }, "hydra.nvim": { "branch": "master", "commit": "55de54543d673824435930ecf533256eea2e565b" }, "icon-picker.nvim": { "branch": "master", "commit": "3ee9a0ea9feeef08ae35e40c8be6a2fa2c20f2d3" }, + "import-cost.nvim": { "branch": "main", "commit": "39ef36f438574db0b26e9c957316eb1cb22e970f" }, "inc-rename.nvim": { "branch": "main", "commit": "6f9b5f9cb237e12935144cdc535322b8c93c1b25" }, "indent-blankline.nvim": { "branch": "master", "commit": "12e92044d313c54c438bd786d11684c88f6f78cd" }, "kitty-scrollback.nvim": { "branch": "main", "commit": "5e0deaba10b29aa9e2af1ef79fa22ba51987b2a9" }, @@ -47,7 +51,7 @@ "lsp-lens.nvim": { "branch": "main", "commit": "48bb1a7e271424c15f3d588d54adc9b7c319d977" }, "lualine.nvim": { "branch": "master", "commit": "566b7036f717f3d676362742630518a47f132fff" }, "markdown-preview.nvim": { "branch": "master", "commit": "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" }, - "mason-lspconfig.nvim": { "branch": "main", "commit": "0989bdf4fdf7b5aa4c74131d7ffccc3f399ac788" }, + "mason-lspconfig.nvim": { "branch": "main", "commit": "3ba1b92b771f33256b4969d696b82c8ae7075364" }, "mason-nvim-dap.nvim": { "branch": "main", "commit": "3614a39aae98ccd34124b072939d6283853b3dd2" }, "mason.nvim": { "branch": "main", "commit": "e110bc3be1a7309617cecd77bfe4bf86ba1b8134" }, "middleclass": { "branch": "master", "commit": "9fab4d5bca67262614960960ca35c4740eb2be2c" }, @@ -58,49 +62,55 @@ "mini.indentscope": { "branch": "main", "commit": "5a8369475cd7cd6f207a4d288406d03b0fc48bdb" }, "mini.surround": { "branch": "main", "commit": "7bf8915ba15d7a4f3c2afe7868d3c15a858d73f1" }, "multicursors.nvim": { "branch": "main", "commit": "8e876fe9db46c1b76c151202b418df21eca07bad" }, - "neo-tree.nvim": { "branch": "v3.x", "commit": "77d9f484b88fd380386b46ed9206e5374d69d9d8" }, + "neo-tree.nvim": { "branch": "v3.x", "commit": "2f2d08894bbc679d4d181604c16bb7079f646384" }, "neoconf.nvim": { "branch": "main", "commit": "64437787dba70fce50dad7bfbb97d184c5bc340f" }, - "neodev.nvim": { "branch": "main", "commit": "dde00106b9094f101980b364fae02fd85d357306" }, + "neodev.nvim": { "branch": "main", "commit": "505860e0277611434f4e8d61d3c0d373045e57e1" }, "neogen": { "branch": "main", "commit": "70127baaff25611deaf1a29d801fc054ad9d2dc1" }, - "neotest": { "branch": "master", "commit": "1ee3fcc150207f33dba8c9b3f478e5a0148d661d" }, + "neotest": { "branch": "master", "commit": "dcdb40ea48f9c7b67a5576f6bb2e5f63ec15f2c0" }, "neotest-bash": { "branch": "main", "commit": "2eaad2ae4577fadf4af1eec32ec169d0fb2698bb" }, + "neotest-go": { "branch": "main", "commit": "d29d20d912aca81a07c50022d880cc66f0d26542" }, "neotest-jest": { "branch": "main", "commit": "a394106cf053eef86d65ae04c4b93a1a7bd60aef" }, "neotest-mocha": { "branch": "main", "commit": "68f0e9768a94c3ebd4d5e67b2765e6a5df017d99" }, - "neotest-python": { "branch": "master", "commit": "86ac2bbc8a4da3f203e56d9303d6ed1d7e50c1f6" }, + "neotest-python": { "branch": "master", "commit": "2e83d2bc00acbcc1fd529dbf0a0e677cabfe6b50" }, "neotest-rust": { "branch": "main", "commit": "3c06f239ad260f02c8678141e08b57d20fbe2c55" }, - "neotest-vitest": { "branch": "main", "commit": "15972c4791b3d47df82311047835803a072c1da6" }, + "neotest-vitest": { "branch": "main", "commit": "87e91bfd9419a8c74bf0d105e2ae31b9692daf0b" }, "noice.nvim": { "branch": "main", "commit": "92433164e2f7118d4122c7674c3834d9511722ba" }, "nui.nvim": { "branch": "main", "commit": "35da9ca1de0fc4dda96c2e214d93d363c145f418" }, "nvim-ansible": { "branch": "main", "commit": "d115cb9bb3680c990e2684f58cf333663fff03b8" }, "nvim-autopairs": { "branch": "master", "commit": "9fd41181693dd4106b3e414a822bb6569924de81" }, "nvim-cmp": { "branch": "main", "commit": "538e37ba87284942c1d76ed38dd497e54e65b891" }, "nvim-dap": { "branch": "master", "commit": "9adbfdca13afbe646d09a8d7a86d5d031fb9c5a5" }, + "nvim-dap-go": { "branch": "main", "commit": "a5cc8dcad43f0732585d4793deb02a25c4afb766" }, "nvim-dap-python": { "branch": "master", "commit": "091e4ae00a12085f9ed4200a3cd04af7179b8a23" }, - "nvim-dap-ui": { "branch": "master", "commit": "7e5e16427aaf814dc2d58e1b219def9ef2fa2435" }, + "nvim-dap-ui": { "branch": "master", "commit": "a6beb3a855b42faa1d0fee1081602257719c2c5e" }, "nvim-dap-virtual-text": { "branch": "master", "commit": "d4542ac257d3c7ee4131350db6179ae6340ce40b" }, + "nvim-dev-container": { "branch": "main", "commit": "47927e2df27503debf3bfbfe90afefbac73e002f" }, "nvim-devdocs": { "branch": "master", "commit": "521d24661ffe6d1ba025debea2675c765a9c1ee1" }, + "nvim-jqx": { "branch": "master", "commit": "11b1d0368e5b23b9c356da8e5f70bb5827f27f62" }, "nvim-lightbulb": { "branch": "master", "commit": "8f00b89dd1b1dbde16872bee5fbcee2e58c9b8e9" }, - "nvim-lint": { "branch": "master", "commit": "8df53b5dde8ea80f0a039775777eae6648a10229" }, + "nvim-lint": { "branch": "master", "commit": "6427b17058a74891bb287b275356bbc445b5924c" }, "nvim-lsp-file-operations": { "branch": "master", "commit": "8e7223e138590c1bd9d86d3de810e65939d8b12f" }, - "nvim-lspconfig": { "branch": "master", "commit": "e47ccfae775f0d572ef0f3a7d245f043b259dafc" }, - "nvim-notify": { "branch": "master", "commit": "1576123bff3bed67bc673a3076e591abfe5d8ca9" }, + "nvim-lspconfig": { "branch": "master", "commit": "7eed8b2150192e5ad05e1886fdf133493ddf2928" }, + "nvim-notify": { "branch": "master", "commit": "80b67b265530632505193553d05127ae7fe09ddd" }, "nvim-numbertoggle": { "branch": "main", "commit": "9ab95e60ea5ec138e1b2332e0fc18b8e5de464c6" }, "nvim-origami": { "branch": "main", "commit": "4ec426ce4b0aad0303af44909f86e075dd65c615" }, "nvim-puppeteer": { "branch": "main", "commit": "d7e1b2d67c89d32b6ecada88ff67b539ba09f2d7" }, "nvim-recorder": { "branch": "main", "commit": "bf9efe10bff3ae8461568eee7f0d6c8750b01569" }, - "nvim-scissors": { "branch": "main", "commit": "f7a24fbbb10c1c87f1907e57de5f384cc01baf24" }, + "nvim-regexplainer": { "branch": "main", "commit": "78fff711edcb986a05a03253c28a90e32c4ce31f" }, + "nvim-scissors": { "branch": "main", "commit": "63d05e732d1403fcd7c7e1fb6b55763adcd08b64" }, "nvim-spectre": { "branch": "master", "commit": "d8906855f1949ac97b1e77aaf8d3fe12ed158ddc" }, - "nvim-treesitter": { "branch": "master", "commit": "8cd2b230174efbf7b5d9f49fe2f90bda6b5eb16e" }, - "nvim-treesitter-context": { "branch": "master", "commit": "400a99ad43ac78af1148061da3491cba2637ad29" }, + "nvim-treesitter": { "branch": "master", "commit": "07c8c3d84f67b1530f636dcad31971f569a3df5f" }, + "nvim-treesitter-context": { "branch": "master", "commit": "2017a0d7fc2d3790d823feddedada506984a10ce" }, "nvim-treesitter-endwise": { "branch": "master", "commit": "4c344ffc8d54d7e1ba2cefaaa2c10ea93aa1cc2d" }, - "nvim-treesitter-textobjects": { "branch": "master", "commit": "a97a6ea140cbe5e0f7ab1291c7ca70abd5171d31" }, + "nvim-treesitter-textobjects": { "branch": "master", "commit": "19a91a38b02c1c28c14e0ba468d20ae1423c39b2" }, "nvim-ts-autotag": { "branch": "main", "commit": "8515e48a277a2f4947d91004d9aa92c29fdc5e18" }, "nvim-ts-context-commentstring": { "branch": "main", "commit": "1277b4a1f451b0f18c0790e1a7f12e1e5fdebfee" }, "nvim-ufo": { "branch": "main", "commit": "b0741a647efd98d9abb6cb653e056d24a07e4581" }, - "nvim-various-textobjs": { "branch": "main", "commit": "779dd981e55d534a4234d9650c9cbb39e4663c9a" }, - "nvim-web-devicons": { "branch": "master", "commit": "584038666b0d8124d452a2e8ea9e38e6d6e56490" }, - "nvim_context_vt": { "branch": "master", "commit": "a14f9292b4bd68ceed433fc513f287641816dc6d" }, - "octo.nvim": { "branch": "master", "commit": "c6b008434d684e746a40e443876b646b521cebbf" }, + "nvim-various-textobjs": { "branch": "main", "commit": "ca9e6f290c25f6a3168c5dd64b9ef0a8000263d9" }, + "nvim-web-devicons": { "branch": "master", "commit": "140edfcf25093e8b321d13e154cbce89ee868ca0" }, + "nvim_context_vt": { "branch": "master", "commit": "8f7b6b46292e0819290b0d368abc3366b8a163fc" }, + "octo.nvim": { "branch": "master", "commit": "5a04268e54c3f538702ef4f03f635d69c569d23e" }, + "oil.nvim": { "branch": "master", "commit": "dd432e76d01eda08b8658415588d011009478469" }, "openingh.nvim": { "branch": "main", "commit": "5c9e851d7c26fdb236dfea8866b71fefe7ddeffc" }, "outline.nvim": { "branch": "main", "commit": "4ad4e8e2b9c797d68774b0d88f91c92183975639" }, "overseer.nvim": { "branch": "master", "commit": "68a2d344cea4a2e11acfb5690dc8ecd1a1ec0ce0" }, @@ -110,16 +120,22 @@ "plenary.nvim": { "branch": "master", "commit": "55d9fe89e33efd26f532ef20223e5f9430c8b0c0" }, "presence.nvim": { "branch": "main", "commit": "87c857a56b7703f976d3a5ef15967d80508df6e6" }, "promise-async": { "branch": "main", "commit": "94f6f03c6c1e2aab551aacdf0c1e597a7269abb6" }, - "rainbow-delimiters.nvim": { "branch": "master", "commit": "739a034046465d2b100151037401c24c42cb09cf" }, + "rainbow-delimiters.nvim": { "branch": "master", "commit": "cf626cd2f94f6c230384c2e3249352b6404cd8d7" }, "refactoring.nvim": { "branch": "master", "commit": "c067e44b8171494fc1b5206ab4c267cd74c043b1" }, - "rustaceanvim": { "branch": "master", "commit": "d03f72788b81cb311250d9fe0692f3435d609b5a" }, + "rest.nvim": { "branch": "main", "commit": "84e81a19ab24ccf05c9233d34d4dfce61c233abe" }, + "rustaceanvim": { "branch": "master", "commit": "ea105333daea50823d30842adeae1a763d1e88f6" }, "satellite.nvim": { "branch": "main", "commit": "99610b77fe2e047d2e55d70a256bcf63953eb6d7" }, "search-replace.nvim": { "branch": "main", "commit": "d92290a02d97f4e9b8cd60d28b56b403432158d5" }, "semshi": { "branch": "master", "commit": "0182447e2ff4dfa04cd2dfe5f189e012c581ca45" }, "smart-splits.nvim": { "branch": "master", "commit": "36bfe63246386fc5ae2679aa9b17a7746b7403d5" }, + "sniprun": { "branch": "master", "commit": "0079f9c4675a6825f84e108bbff866f67dd8762f" }, + "speedtyper.nvim": { "branch": "main", "commit": "2d158eed4c753995b0501a3a7a72464fbb213e3d" }, "sqlite.lua": { "branch": "master", "commit": "b7e28c8463254c46a8e61c52d27d6a2040492fc3" }, + "ssr.nvim": { "branch": "main", "commit": "bb323ba621ac647b4ac5638b47666e3ef3c279e1" }, "suda.vim": { "branch": "master", "commit": "8b0fc3711760195aba104e2d190cff9af8267052" }, + "tailwindcss-colorizer-cmp.nvim": { "branch": "main", "commit": "bc25c56083939f274edcfe395c6ff7de23b67c50" }, "telescope-all-recent.nvim": { "branch": "main", "commit": "bfd8bb3b9c43bf0d09c2a77f3a5fcbecddbf9908" }, + "telescope-dap.nvim": { "branch": "master", "commit": "8c88d9716c91eaef1cdea13cb9390d8ef447dbfe" }, "telescope-floaterm.nvim": { "branch": "main", "commit": "ccd3f40ae30dce5de0e5d0f5069e08e7d9ad6d23" }, "telescope-fzf-native.nvim": { "branch": "main", "commit": "6c921ca12321edaa773e324ef64ea301a1d0da62" }, "telescope-import.nvim": { "branch": "main", "commit": "08e31708451b43d1ef766d370d5ef17e9f0c24ae" }, @@ -128,7 +144,7 @@ "telescope-undo.nvim": { "branch": "main", "commit": "d3afc1c105535a90caec092ce27a113f77ba7b84" }, "telescope-zoxide": { "branch": "main", "commit": "68966349aa1b8e9ade403e18479ecf79447389a7" }, "telescope.nvim": { "branch": "master", "commit": "da8b3d485975a8727bea127518b65c980521ae22" }, - "text-case.nvim": { "branch": "main", "commit": "04a2ef39604fac1e1cd280989afd101615039b88" }, + "text-case.nvim": { "branch": "main", "commit": "6bc91cde614bbec6f0befbaf7fcd302415d803fb" }, "theme-loader.nvim": { "branch": "master", "commit": "ad8774ec8267a447d469b4e6603b43f49b946e53" }, "todo-comments.nvim": { "branch": "main", "commit": "4a6737a8d70fe1ac55c64dfa47fcb189ca431872" }, "tokyonight.nvim": { "branch": "main", "commit": "f247ee700b569ed43f39320413a13ba9b0aef0db" }, @@ -136,8 +152,12 @@ "trouble.nvim": { "branch": "main", "commit": "f1168feada93c0154ede4d1fe9183bf69bac54ea" }, "ts-node-action": { "branch": "master", "commit": "e37eb458378de5d994df459a53711b2546abef0f" }, "tsc.nvim": { "branch": "main", "commit": "a8f26d3d6a0faf533afb840816a6d9ac6a1fcbea" }, + "tw-values.nvim": { "branch": "main", "commit": "3808621a53f6ac9c151b77d9df61b29991c12921" }, "twilight.nvim": { "branch": "main", "commit": "8b7b50c0cb2dc781b2f4262a5ddd57571556d1e4" }, - "venv-selector.nvim": { "branch": "main", "commit": "79709f8ad99ac2082d99a713985f3da0c924f4a2" }, + "urlview.nvim": { "branch": "main", "commit": "7d622e11adbc2cac5bba62345ade9b6672d564a4" }, + "venv-selector.nvim": { "branch": "main", "commit": "fcb30164f2c4f8a34a305ead3247954a1fd8634f" }, + "vim-be-good": { "branch": "master", "commit": "c290810728a4f75e334b07dc0f3a4cdea908d351" }, + "vim-carbon-now-sh": { "branch": "master", "commit": "31a18d26fc27e7bd5786da092ed886273b4cf639" }, "vim-dadbod": { "branch": "master", "commit": "738cfc2ea6a1510fe23cba9006fef9291be70f7b" }, "vim-dadbod-completion": { "branch": "master", "commit": "c920cb0ba3dff4b1b0ed373e1c0b3007dec696c2" }, "vim-dadbod-ui": { "branch": "master", "commit": "e99dcfd5162d9b9b4b24a5d035cf114315f1aeec" }, diff --git a/config/nvim/lazyvim.json b/config/nvim/lazyvim.json index 810894d9..3eba0da2 100644 --- a/config/nvim/lazyvim.json +++ b/config/nvim/lazyvim.json @@ -7,12 +7,15 @@ "plugins.extras.coding.ai.gpt", "plugins.extras.coding.annotation", "plugins.extras.coding.cmp.autopairs", + "plugins.extras.coding.cmp.dotenv", + "plugins.extras.coding.cmp.under-comparator", "plugins.extras.coding.debugprint", "plugins.extras.coding.dial", "plugins.extras.coding.multicursor", "plugins.extras.coding.recorder", "plugins.extras.coding.refactoring", "plugins.extras.coding.snippets", + "plugins.extras.coding.sniprun", "plugins.extras.coding.treesitter.endwise", "plugins.extras.coding.treesitter.mini-align", "plugins.extras.coding.treesitter.node-action", @@ -22,8 +25,11 @@ "plugins.extras.coding.yanky", "plugins.extras.dap.core", "plugins.extras.dap.persistent-breakpoints", + "plugins.extras.dap.telescope", + "plugins.extras.editor.carbon-now", "plugins.extras.editor.color", "plugins.extras.editor.compiler", + "plugins.extras.editor.dev-container", "plugins.extras.editor.docs.devdocs", "plugins.extras.editor.fold", "plugins.extras.editor.git.diffview", @@ -31,15 +37,20 @@ "plugins.extras.editor.git.worktree", "plugins.extras.editor.harpoon", "plugins.extras.editor.live-server", + "plugins.extras.editor.oil", "plugins.extras.editor.outline", "plugins.extras.editor.package-info", + "plugins.extras.editor.regex", + "plugins.extras.editor.rest-client", "plugins.extras.editor.search-replace", + "plugins.extras.editor.ssr", "plugins.extras.editor.suda", "plugins.extras.editor.telescope.all-recent", "plugins.extras.editor.telescope.import", "plugins.extras.editor.telescope.lazy", "plugins.extras.editor.telescope.luasnip", "plugins.extras.editor.telescope.undotree", + "plugins.extras.editor.telescope.urlview", "plugins.extras.editor.telescope.zoxide", "plugins.extras.editor.terminal.floaterm", "plugins.extras.formatting.prettier-extended", @@ -47,12 +58,15 @@ "plugins.extras.formatting.trim_whitespace", "plugins.extras.lang.ansible", "plugins.extras.lang.bash", + "plugins.extras.lang.docker-extended", "plugins.extras.lang.git", + "plugins.extras.lang.go-extended", "plugins.extras.lang.markdown-extended", "plugins.extras.lang.python-extended", "plugins.extras.lang.rust-extended", "plugins.extras.lang.sql", "plugins.extras.lang.web.html-css", + "plugins.extras.lang.web.tailwind-extended", "plugins.extras.lang.web.typescript-extended", "plugins.extras.lang.web.vue", "plugins.extras.linting.biome", @@ -71,6 +85,7 @@ "plugins.extras.ui.comment-box", "plugins.extras.ui.context", "plugins.extras.ui.highlight-undo", + "plugins.extras.ui.import-cost", "plugins.extras.ui.number-toggle", "plugins.extras.ui.rainbow-delimeters", "plugins.extras.ui.scrollbar", @@ -80,10 +95,12 @@ "plugins.extras.util.bigfile", "plugins.extras.util.discordrcp", "plugins.extras.util.dot-extended", - "plugins.extras.util.esqueleto", "plugins.extras.util.icon-picker", "plugins.extras.util.kitty-scrollback", + "plugins.extras.util.neovide", "plugins.extras.util.smart-splits", + "plugins.extras.util.speedtyper", + "plugins.extras.util.vim-be-good", "plugins.extras.util.vscode", "plugins.extras.util.wakatime" ], diff --git a/config/nvim/lua/config/autocmds.lua b/config/nvim/lua/config/autocmds.lua index 58f96c85..6a94565b 100644 --- a/config/nvim/lua/config/autocmds.lua +++ b/config/nvim/lua/config/autocmds.lua @@ -2,12 +2,11 @@ -- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua -- Add any additional autocmds here -local function augroup(name) - return vim.api.nvim_create_augroup("lazyvim_" .. name, { clear = true }) -end +local au = vim.api.nvim_create_autocmd +local ag = vim.api.nvim_create_augroup -- Disable diagnostics in a .env file -vim.api.nvim_create_autocmd("BufRead", { +au("BufRead", { pattern = ".env", callback = function() vim.diagnostic.disable(0) @@ -15,7 +14,7 @@ vim.api.nvim_create_autocmd("BufRead", { }) -- Fix telescope entering on insert mode -vim.api.nvim_create_autocmd("WinLeave", { +au("WinLeave", { callback = function() if vim.bo.ft == "TelescopePrompt" and vim.fn.mode() == "i" then vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes("", true, false, true), "i", false) @@ -34,8 +33,8 @@ local auto_close_filetype = { } -- Auto close window when leaving -vim.api.nvim_create_autocmd("BufLeave", { - group = augroup("auto_close_win"), +au("BufLeave", { + group = ag("lazyvim_auto_close_win", { clear = true }), callback = function(event) local ft = vim.api.nvim_buf_get_option(event.buf, "filetype") @@ -49,8 +48,8 @@ vim.api.nvim_create_autocmd("BufLeave", { }) -- Disable leader and localleader for some filetypes -vim.api.nvim_create_autocmd("FileType", { - group = augroup("unbind_leader_key"), +au("FileType", { + group = ag("lazyvim_unbind_leader_key", { clear = true }), pattern = { "lazy", "mason", @@ -69,16 +68,25 @@ vim.api.nvim_create_autocmd("FileType", { }) -- Delete number column on terminals -vim.api.nvim_create_autocmd("TermOpen", { +au("TermOpen", { callback = function() vim.cmd("setlocal listchars= nonumber norelativenumber") end, }) -- Disable next line comments -vim.api.nvim_create_autocmd("BufEnter", { +au("BufEnter", { callback = function() vim.cmd("set formatoptions-=cro") vim.cmd("setlocal formatoptions-=cro") end, }) + +-- Disable eslint on node_modules +au({ "BufNewFile", "BufRead" }, { + group = ag("DisableEslintOnNodeModules", { clear = true }), + pattern = { "**/node_modules/**", "node_modules", "/node_modules/*" }, + callback = function() + vim.diagnostic.disable(0) + end, +}) diff --git a/config/nvim/lua/config/keymaps.lua b/config/nvim/lua/config/keymaps.lua index ddff65ac..39a128f0 100644 --- a/config/nvim/lua/config/keymaps.lua +++ b/config/nvim/lua/config/keymaps.lua @@ -15,9 +15,18 @@ map("n", "?", searching_brave, { noremap = true, silent = true, desc = " -- stylua: ignore map("n", "uB", function() Util.toggle("background", false, { "light", "dark" }) end, { desc = "Toggle Background" }) +-- Save without formatting +map("n", "", "noautocmd w", { desc = "Save without formatting" }) + -- Disable lazyterminal keymap map("n", "fT", "") +-- Cursor navigation on insert mode +map("i", "", "", { desc = "Move cursor left" }) +map("i", "", "", { desc = "Move cursor left" }) +map("i", "", "", { desc = "Move cursor left" }) +map("i", "", "", { desc = "Move cursor left" }) + -- End of the word backwards map("n", "E", "ge") @@ -28,15 +37,9 @@ map("n", "-", "") -- Tabs map("n", "]", "tabnext", { desc = "Next Tab" }) map("n", "[", "tabprevious", { desc = "Previous Tab" }) -map("n", "1", "tabn 1", { desc = "Tab 1" }) -map("n", "2", "tabn 2", { desc = "Tab 2" }) -map("n", "3", "tabn 3", { desc = "Tab 3" }) -map("n", "4", "tabn 4", { desc = "Tab 4" }) -map("n", "5", "tabn 5", { desc = "Tab 5" }) -map("n", "6", "tabn 6", { desc = "Tab 6" }) -map("n", "7", "tabn 7", { desc = "Tab 7" }) -map("n", "8", "tabn 8", { desc = "Tab 8" }) -map("n", "9", "tabn 9", { desc = "Tab 9" }) +for i = 1, 9 do + map("n", "" .. i, "tabn " .. i .. "", { desc = "Tab " .. i }) +end -- Buffers map("n", "bf", "bfirst", { desc = "First Buffer" }) diff --git a/config/nvim/lua/config/lazy.lua b/config/nvim/lua/config/lazy.lua index 5c31cff0..3a20e1a1 100644 --- a/config/nvim/lua/config/lazy.lua +++ b/config/nvim/lua/config/lazy.lua @@ -36,6 +36,7 @@ require("lazy").setup({ "tarPlugin", "tohtml", "tutor", + "netrwPlugin", "zipPlugin", }, }, diff --git a/config/nvim/lua/config/options.lua b/config/nvim/lua/config/options.lua index 14780259..20f0e67e 100644 --- a/config/nvim/lua/config/options.lua +++ b/config/nvim/lua/config/options.lua @@ -6,20 +6,17 @@ local opt = vim.g -- Optimizations on startup vim.loader.enable() +-- Define leader key +opt.mapleader = " " +opt.maplocalleader = "\\" + -- Autoformat on save (Global) opt.autoformat = true --- Disable netrw -opt.loaded_netrw = 1 -opt.loaded_netrwPlugin = 1 - -- Font opt.gui_font_default_size = 10 opt.gui_font_size = opt.gui_font_default_size opt.gui_font_face = "JetBrainsMono Nerd Font" --- Define leader key -opt.mapleader = " " - -- Enable EditorConfig integration opt.editorconfig = true diff --git a/config/nvim/lua/plugins/bufferline.lua b/config/nvim/lua/plugins/bufferline.lua index 6f880529..33830a52 100644 --- a/config/nvim/lua/plugins/bufferline.lua +++ b/config/nvim/lua/plugins/bufferline.lua @@ -1,22 +1,21 @@ +local keys = {} + +-- stylua: ignore start +for i = 1, 9 do + table.insert(keys, { "b" .. i, "BufferLineGoToBuffer " .. i .. "", desc = "Buffer " .. i }) +end + +table.insert(keys, { "[B", "BufferLineMovePrev", desc = "Move buffer prev" }) +table.insert(keys, { "]B", "BufferLineMoveNext", desc = "Move buffer next" }) +table.insert(keys, { ".", "BufferLinePick", desc = "Pick Buffer" }) + +table.insert(keys, { "bS", "BufferLineSortByDirectory", desc = "Sort By Directory" }) +table.insert(keys, { "bs", "BufferLineSortByExtension", desc = "Sort By Extensions" }) +-- stylua: ignore end + return { "akinsho/bufferline.nvim", - keys = { - { "[B", "BufferLineMovePrev", desc = "Move buffer prev" }, - { "]B", "BufferLineMoveNext", desc = "Move buffer next" }, - { ".", "BufferLinePick", desc = "Pick Buffer" }, - { "bS", "BufferLineSortByDirectory", desc = "Sort By Directory" }, - { "bs", "BufferLineSortByExtension", desc = "Sort By Extensions" }, - { "b1", "BufferLineGoToBuffer 1", desc = "Buffer 1" }, - { "b2", "BufferLineGoToBuffer 2", desc = "Buffer 2" }, - { "b3", "BufferLineGoToBuffer 3", desc = "Buffer 3" }, - { "b4", "BufferLineGoToBuffer 4", desc = "Buffer 4" }, - { "b5", "BufferLineGoToBuffer 5", desc = "Buffer 5" }, - { "b6", "BufferLineGoToBuffer 6", desc = "Buffer 6" }, - { "b7", "BufferLineGoToBuffer 7", desc = "Buffer 7" }, - { "b8", "BufferLineGoToBuffer 8", desc = "Buffer 8" }, - { "b9", "BufferLineGoToBuffer 9", desc = "Buffer 9" }, - { "b0", "BufferLineGoToBuffer -1", desc = "Buffer -1" }, - }, + keys = keys, opts = { options = { modified_icon = "ο‘„", diff --git a/config/nvim/lua/plugins/extras/coding/ai/codeium.lua b/config/nvim/lua/plugins/extras/coding/ai/codeium.lua index cf79507c..e4b026f4 100644 --- a/config/nvim/lua/plugins/extras/coding/ai/codeium.lua +++ b/config/nvim/lua/plugins/extras/coding/ai/codeium.lua @@ -30,7 +30,7 @@ return { return vim.fn["codeium#Clear"]() end, opts) - vim.keymap.set("n", "cI", "CodeiumToggle", { desc = "Toggle IA" }) + vim.keymap.set("n", "cI", "CodeiumToggle", { desc = "Toggle IA (Codeium)" }) end, }, { diff --git a/config/nvim/lua/plugins/extras/coding/ai/gen.lua b/config/nvim/lua/plugins/extras/coding/ai/gen.lua new file mode 100644 index 00000000..d97d70d9 --- /dev/null +++ b/config/nvim/lua/plugins/extras/coding/ai/gen.lua @@ -0,0 +1,29 @@ +return { + "jellydn/gen.nvim", + opts = { + model = "codellama", + display_mode = "split", + show_prompt = true, + show_model = true, + no_auto_close = false, + init = function(options) + pcall(io.popen, "ollama serve > /dev/null 2>&1 &") + end, + command = "curl --silent --no-buffer -X POST http://localhost:11434/api/generate -d $body", + }, + config = function(_, opts) + local gen = require("gen") + gen.setup(opts) + + gen.prompts["Elaborate_Text"] = { + prompt = "Elaborate the following text:\n$text", + } + gen.prompts["Fix_Code"] = { + prompt = "Fix the following code. Only output the result in format ```$filetype\n...\n```:\n```$filetype\n$text\n```", + extract = "```$filetype\n(.-)```", + } + end, + keys = { + { "i", "Gen", mode = { "n", "v" }, desc = "IA (Gen)" }, + }, +} diff --git a/config/nvim/lua/plugins/extras/coding/annotation.lua b/config/nvim/lua/plugins/extras/coding/annotation.lua index 4017a968..eb632f54 100644 --- a/config/nvim/lua/plugins/extras/coding/annotation.lua +++ b/config/nvim/lua/plugins/extras/coding/annotation.lua @@ -29,6 +29,7 @@ return { -- stylua: ignore keys = { { "ag", "DookuGenerate", desc = "Generate HTML Docs" }, + { "ao", "DookuOpen", desc = "Open HTML Docs" }, }, }, } diff --git a/config/nvim/lua/plugins/extras/dap/core.lua b/config/nvim/lua/plugins/extras/dap/core.lua index ae146b18..ee9a5b80 100644 --- a/config/nvim/lua/plugins/extras/dap/core.lua +++ b/config/nvim/lua/plugins/extras/dap/core.lua @@ -12,14 +12,15 @@ return { }, }, }, - -- stylua: ignore - keys = { - { "", function() require("dap").continue() end, desc = "Debug: Continue" }, - { "", function() require("dap").step_over() end, desc = "Debug: Step over" }, - { "", function() require("dap").step_into() end, desc = "Debug: Step into" }, - { "", function() require("dap").step_out() end, desc = "Debug: Step out" }, - { "", function() require("dap").toggle_breakpoint() end, desc = "Debug: Toggle breakpoint" }, - }, + -- stylua: ignore + keys = { + { "", function() require("dap").continue() end, desc = "Debug: Continue" }, + { "", function() require("dap").step_over() end, desc = "Debug: Step over" }, + { "", function() require("dap").step_into() end, desc = "Debug: Step into" }, + { "", function() require("dap").step_out() end, desc = "Debug: Step out" }, + { "", function() require("dap").toggle_breakpoint() end, desc = "Debug: Toggle breakpoint" }, + { "", function() require("dap").set_breakpoint(vim.fn.input('Breakpoint condition: ')) end, desc = "Breakpoint Condition" }, + }, }, { "folke/which-key.nvim", diff --git a/config/nvim/lua/plugins/extras/editor/carbon-now.lua b/config/nvim/lua/plugins/extras/editor/carbon-now.lua new file mode 100644 index 00000000..b3f5dc6a --- /dev/null +++ b/config/nvim/lua/plugins/extras/editor/carbon-now.lua @@ -0,0 +1,7 @@ +return { + "kristijanhusak/vim-carbon-now-sh", + cmd = { "CarbonNowSh" }, + keys = { + { "cS", ":CarbonNowSh", mode = { "n", "v" }, desc = "Screenshot Code", silent = true }, + }, +} diff --git a/config/nvim/lua/plugins/extras/editor/dev-container.lua b/config/nvim/lua/plugins/extras/editor/dev-container.lua new file mode 100644 index 00000000..fa41ed2d --- /dev/null +++ b/config/nvim/lua/plugins/extras/editor/dev-container.lua @@ -0,0 +1,32 @@ +return { + { + "https://codeberg.org/esensar/nvim-dev-container", + cmd = { + "DevcontainerStart", + "DevcontainerStop", + "DevcontainerLogs", + "DevcontainerEditNearestConfig", + "DevcontainerAttach", + "DevcontainerExec", + "DevcontainerStopAll", + "DevcontainerRemoveAll", + }, + dependencies = { "nvim-treesitter/nvim-treesitter" }, + opts = {}, + keys = { + { "os", "DevcontainerStart", desc = "Start" }, + { "oS", "DevcontainerStop", desc = "Stop" }, + { "ol", "DevcontainerLogs", desc = "Log" }, + { "oc", "DevcontainerEditNearestConfig", desc = "Config" }, + { "oa", "DevcontainerAttach", desc = "Attach" }, + }, + }, + { + "folke/which-key.nvim", + opts = { + defaults = { + ["o"] = { name = "ο’· c[o]ntainers" }, + }, + }, + }, +} diff --git a/config/nvim/lua/plugins/extras/editor/git/diffview.lua b/config/nvim/lua/plugins/extras/editor/git/diffview.lua index 689d872b..fbd8868a 100644 --- a/config/nvim/lua/plugins/extras/editor/git/diffview.lua +++ b/config/nvim/lua/plugins/extras/editor/git/diffview.lua @@ -15,12 +15,12 @@ return { { "n", "gCt", actions.conflict_choose("theirs"), { desc = "Choose the THEIRS version of a conflict" } }, { "n", "gCb", actions.conflict_choose("base"), { desc = "Choose the BASE version of a conflict" } }, { "n", "gCa", actions.conflict_choose("all"), { desc = "Choose all the versions of a conflict" } }, - { "n", "gCx", actions.conflict_choose("none"), { desc = "Delete the conflict region" } }, + { "n", "gCx", actions.conflict_choose("none"), { desc = "Delete the conflict region" } }, { "n", "gCO", actions.conflict_choose_all("ours"), { desc = "Choose the OURS version of a conflict for the whole file" } }, { "n", "gCT", actions.conflict_choose_all("theirs"), { desc = "Choose the THEIRS version of a conflict for the whole file" } }, { "n", "gCB", actions.conflict_choose_all("base"), { desc = "Choose the BASE version of a conflict for the whole file" } }, { "n", "gCA", actions.conflict_choose_all("all"), { desc = "Choose all the versions of a conflict for the whole file" } }, - { "n", "gCX", actions.conflict_choose_all("none"), { desc = "Delete the conflict region for the whole file" } }, + { "n", "gCX", actions.conflict_choose_all("none"), { desc = "Delete the conflict region for the whole file" } }, }, --stylua: ignore file_panel = { @@ -28,7 +28,7 @@ return { { "n", "gCT", actions.conflict_choose_all("theirs"), { desc = "Choose the THEIRS version of a conflict for the whole file" } }, { "n", "gCB", actions.conflict_choose_all("base"), { desc = "Choose the BASE version of a conflict for the whole file" } }, { "n", "gCA", actions.conflict_choose_all("all"), { desc = "Choose all the versions of a conflict for the whole file" } }, - { "n", "gCX", actions.conflict_choose_all("none"), { desc = "Delete the conflict region for the whole file" } }, + { "n", "gCX", actions.conflict_choose_all("none"), { desc = "Delete the conflict region for the whole file" } }, }, } end, diff --git a/config/nvim/lua/plugins/extras/editor/harpoon.lua b/config/nvim/lua/plugins/extras/editor/harpoon.lua index 2dd2ffe2..203d1051 100644 --- a/config/nvim/lua/plugins/extras/editor/harpoon.lua +++ b/config/nvim/lua/plugins/extras/editor/harpoon.lua @@ -1,3 +1,18 @@ +local keys = {} + +-- stylua: ignore start +for i = 1, 9 do + table.insert(keys, { "h" .. i, function() require("harpoon"):list():select(i) end, desc = "File " .. i }) +end + +table.insert(keys, { "ha", function() require("harpoon"):list():append() end, desc = "Add Mark" }) +table.insert(keys, { "hh", function() require("harpoon").ui:toggle_quick_menu(require("harpoon"):list()) end, desc = "Menu" }) +table.insert(keys, { "hf", "Telescope harpoon marks", desc = "Files" }) + +table.insert(keys, { "]H", function() require("harpoon"):list():next() end, desc = "Next Harpoon File" }) +table.insert(keys, { "[H", function() require("harpoon"):list():prev() end, desc = "Prev Harpoon File" }) +-- stylua: ignore end + return { { "ThePrimeagen/harpoon", @@ -6,24 +21,7 @@ return { "nvim-lua/plenary.nvim", }, --stylua: ignore - keys = { - { "ha", function() require("harpoon"):list():append() end, desc = "Add Mark" }, - { "hh", function() require("harpoon").ui:toggle_quick_menu(require("harpoon"):list()) end, desc = "Menu" }, - { "hf", "Telescope harpoon marks", desc = "Files" }, - { "h1", function() require("harpoon"):list():select(1) end, desc = "File 1" }, - { "h2", function() require("harpoon"):list():select(2) end, desc = "File 2" }, - { "h3", function() require("harpoon"):list():select(3) end, desc = "File 3" }, - { "h4", function() require("harpoon"):list():select(4) end, desc = "File 4" }, - { "h5", function() require("harpoon"):list():select(5) end, desc = "File 5" }, - { "h6", function() require("harpoon"):list():select(6) end, desc = "File 6" }, - { "h7", function() require("harpoon"):list():select(7) end, desc = "File 7" }, - { "h8", function() require("harpoon"):list():select(8) end, desc = "File 8" }, - { "h9", function() require("harpoon"):list():select(9) end, desc = "File 9" }, - { "]H", function() require("harpoon"):list():next() end, desc = "Next Harpoon File" }, - { "[H", function() require("harpoon"):list():prev() end, desc = "Prev Harpoon File" }, - { "", function() require("harpoon"):list():next() end, desc = "Next Harpoon File" }, - { "", function() require("harpoon"):list():prev() end, desc = "Prev Harpoon File" }, - }, + keys = keys, config = function() local harpoon = require("harpoon") harpoon:setup({}) diff --git a/config/nvim/lua/plugins/extras/editor/oil.lua b/config/nvim/lua/plugins/extras/editor/oil.lua index 622f01e0..4b51ebb2 100644 --- a/config/nvim/lua/plugins/extras/editor/oil.lua +++ b/config/nvim/lua/plugins/extras/editor/oil.lua @@ -13,6 +13,6 @@ return { }, -- stylua: ignore keys = { - { "", function() require("oil").toggle_float() end, desc = "Toggle oil" }, + { ";", function() require("oil").toggle_float() end, desc = "Toggle oil" }, }, } diff --git a/config/nvim/lua/plugins/extras/editor/rayso.lua b/config/nvim/lua/plugins/extras/editor/rayso.lua deleted file mode 100644 index 11da81bc..00000000 --- a/config/nvim/lua/plugins/extras/editor/rayso.lua +++ /dev/null @@ -1,11 +0,0 @@ -return { - "TobinPalmer/rayso.nvim", - cmd = { "Rayso" }, - keys = { - { "cS", "Rayso", mode = { "n" }, desc = "Screenshot Code" }, - { "cS", "'<,'>Rayso", mode = { "v" }, desc = "Screenshot Selection" }, - }, - opts = { - open_cmd = "librewolf", - }, -} diff --git a/config/nvim/lua/plugins/extras/editor/telescope/urlview.lua b/config/nvim/lua/plugins/extras/editor/telescope/urlview.lua index 6c012c6c..71b6cea7 100644 --- a/config/nvim/lua/plugins/extras/editor/telescope/urlview.lua +++ b/config/nvim/lua/plugins/extras/editor/telescope/urlview.lua @@ -1,5 +1,6 @@ return { "axieax/urlview.nvim", + dependencies = { "nvim-telescope/telescope.nvim" }, cmd = { "UrlView" }, keys = { { "sU", "UrlView", desc = "Search Urls" } }, opts = { diff --git a/config/nvim/lua/plugins/extras/editor/terminal/floaterm.lua b/config/nvim/lua/plugins/extras/editor/terminal/floaterm.lua index b068b3ee..b664fac2 100644 --- a/config/nvim/lua/plugins/extras/editor/terminal/floaterm.lua +++ b/config/nvim/lua/plugins/extras/editor/terminal/floaterm.lua @@ -4,18 +4,9 @@ return { cmd = { "FloatermNew", "FloatermToggle", "FloatermNext", "FloatermPrev", "FloatermLast", "FloatermFirst" }, --stylua: ignore keys = { - { "Ts", "FloatermNew --disposable --name=duaroot --opener=edit --titleposition=center --height=0.85 --width=0.85 --cwd= dua i", desc = "Workspace Size (root dir)" }, - { "TS", "FloatermNew --disposable --name=duabuffer --opener=edit --titleposition=center --height=0.85 --width=0.85 --cwd= dua i", desc = "Workspace Size (cwd)" }, - { "", "FloatermNew --disposable --name=yaziroot --opener=edit --titleposition=center --height=0.85 --width=0.85 --cwd= yazi", desc = "File Explorer (root dir)" }, + { "", "FloatermNew --disposable --name=yaziroot --opener=edit --titleposition=center --height=0.85 --width=0.85 --cwd= yazi", desc = "Yazi" }, { "gg", "FloatermNew --name=lazygitroot --opener=edit --titleposition=center --height=0.85 --width=0.85 --cwd= lazygit", desc = "Lazygit (root dir)" }, { "gG", "FloatermNew --name=lazygitbuffer --opener=edit --titleposition=center --height=0.85 --width=0.85 --cwd= lazygit", desc = "Lazygit (cwd)" }, - { "Td", "FloatermNew --disposable --name=lazydocker --opener=edit --titleposition=center --height=0.85 --width=0.85 lazydocker", desc = "Lazydocker" }, - { "Tb", "FloatermNew --disposable --name=btop --opener=edit --titleposition=center --height=0.85 --width=0.85 btop", desc = "Btop" }, - { "Tn", "FloatermNew --disposable --name=navi --opener=edit --titleposition=center --height=0.85 --width=0.85 pages", desc = "Navi Pages" }, - { "Tp", "FloatermNew --disposable --name=proc --opener=edit --titleposition=center --height=0.85 --width=0.85 proc", desc = "Systemd Processes" }, - { "TB", "FloatermNew --disposable --name=bandwhich --opener=edit --titleposition=center --height=0.85 --width=0.85 bandwhich", desc = "Bandwidth" }, - { "gF", "FloatermNew --disposable --name=forgit --opener=edit --titleposition=center --height=0.85 --width=0.85 fgit", desc = "Forgit" }, - { "gf", "FloatermNew! --disposable --name=onefetch --opener=edit --titleposition=center --height=0.85 --width=0.85 --cwd= gfetch", desc = "Gitfetch" }, { "cen", "FloatermNew --name=node --opener=edit --titleposition=center --wintype=split --height=0.35 node", desc = "Node" }, { "cep", "FloatermNew --name=python --opener=edit --titleposition=center --wintype=split --height=0.35 python", desc = "Python" }, { "", "FloatermNext", mode = { "t" }, desc = "Next Terminal" }, @@ -46,7 +37,6 @@ return { defaults = { ["ce"] = { name = "r[e]pl" }, ["ft"] = { name = "terminals" }, - ["T"] = { name = " tools" }, }, }, }, diff --git a/config/nvim/lua/plugins/extras/lang/go-extended.lua b/config/nvim/lua/plugins/extras/lang/go-extended.lua index e3b44c8e..f8f189ce 100644 --- a/config/nvim/lua/plugins/extras/lang/go-extended.lua +++ b/config/nvim/lua/plugins/extras/lang/go-extended.lua @@ -4,7 +4,7 @@ return { "williamboman/mason.nvim", opts = function(_, opts) opts.ensure_installed = opts.ensure_installed or {} - vim.list_extend(opts.ensure_installed, { "golangcil-lint" }) + vim.list_extend(opts.ensure_installed, { "golangci-lint" }) end, }, { @@ -15,7 +15,6 @@ return { "nvim-treesitter/nvim-treesitter", }, opts = {}, - event = { "LazyFile" }, ft = { "go", "gomod" }, build = function() require("go.install").update_all_sync() diff --git a/config/nvim/lua/plugins/extras/lang/rust-extended.lua b/config/nvim/lua/plugins/extras/lang/rust-extended.lua index 260bee43..b50a6e4e 100644 --- a/config/nvim/lua/plugins/extras/lang/rust-extended.lua +++ b/config/nvim/lua/plugins/extras/lang/rust-extended.lua @@ -4,6 +4,18 @@ return { "simrat39/rust-tools.nvim", enabled = false, }, + -- TODO: Look at crates lsp + -- { + -- "Saecki/crates.nvim", + -- opts = { + -- lsp = { + -- enabled = true, + -- on_attach = function(client, bufnr) end, + -- actions = true, + -- completion = true, + -- }, + -- }, + -- }, { "mrcjkb/rustaceanvim", version = "^3", -- Recommended diff --git a/config/nvim/lua/plugins/extras/lang/web/typescript-extended.lua b/config/nvim/lua/plugins/extras/lang/web/typescript-extended.lua index d2e28a9f..e8bd04f6 100644 --- a/config/nvim/lua/plugins/extras/lang/web/typescript-extended.lua +++ b/config/nvim/lua/plugins/extras/lang/web/typescript-extended.lua @@ -1,3 +1,15 @@ +local source_action = function(name) + return function() + vim.lsp.buf.code_action({ + apply = true, + context = { + only = { string.format("source.%s.ts", name) }, + diagnostics = {}, + }, + }) + end +end + local inlayHints = { includeInlayParameterNameHints = "all", includeInlayParameterNameHintsWhenArgumentMatchesName = true, @@ -47,6 +59,23 @@ return { inlayHints = inlayHints, }, }, + keys = { + { + "co", + source_action("organizeImports"), + desc = "Organize Imports", + }, + { + "cM", + source_action("addMissingImports"), + desc = "Add Missing Imports", + }, + { + "cR", + source_action("removeUnused"), + desc = "Remove Unused Imports", + }, + }, }, denols = { root_dir = require("lspconfig").util.root_pattern("deno.json", "deno.jsonc", "deno.lock"), diff --git a/config/nvim/lua/plugins/extras/ui/colorschemes/catppuccin.lua b/config/nvim/lua/plugins/extras/ui/colorschemes/catppuccin.lua index 2e15b4ce..da783d85 100644 --- a/config/nvim/lua/plugins/extras/ui/colorschemes/catppuccin.lua +++ b/config/nvim/lua/plugins/extras/ui/colorschemes/catppuccin.lua @@ -1,4 +1,4 @@ -local macchiato = require("catppuccin.palettes").get_palette("macchiato") +local palette = require("catppuccin.palettes").get_palette("macchiato") -- Import your favorite catppuccin colors return { { @@ -14,6 +14,23 @@ return { dark = "macchiato", }, term_colors = true, + custom_highlights = function() + return { + FloatermBorder = { fg = palette.base }, + TelescopeMatching = { fg = palette.blue }, + TelescopeSelection = { fg = palette.text, bg = palette.surface0, bold = true }, + TelescopePromptPrefix = { bg = palette.surface0 }, + TelescopePromptNormal = { bg = palette.surface0 }, + TelescopeResultsNormal = { bg = palette.mantle }, + TelescopePreviewNormal = { bg = palette.mantle }, + TelescopePromptBorder = { bg = palette.surface0, fg = palette.surface0 }, + TelescopeResultsBorder = { bg = palette.mantle, fg = palette.mantle }, + TelescopePreviewBorder = { bg = palette.mantle, fg = palette.mantle }, + TelescopePromptTitle = { bg = palette.red, fg = palette.mantle }, + TelescopeResultsTitle = { fg = palette.mantle }, + TelescopePreviewTitle = { bg = palette.green, fg = palette.mantle }, + } + end, integrations = { alpha = true, cmp = true, @@ -71,7 +88,6 @@ return { semantic_tokens = true, telescope = { enabled = true, - style = "nvchad", }, symbols_outline = false, treesitter = true, @@ -87,8 +103,8 @@ return { styles = { "italic", "bold" }, custom = { all = { - fill = { bg = macchiato.mantle }, - background = { bg = macchiato.mantle }, + fill = { bg = palette.mantle }, + background = { bg = palette.mantle }, }, }, }), diff --git a/config/nvim/lua/plugins/extras/util/vscode.lua b/config/nvim/lua/plugins/extras/util/vscode.lua index c931751e..82ee4962 100644 --- a/config/nvim/lua/plugins/extras/util/vscode.lua +++ b/config/nvim/lua/plugins/extras/util/vscode.lua @@ -25,6 +25,7 @@ local enabled = { "nvim-various-textobjs", "nvim-ts-context-commentstring", "vim-repeat", + "vim-carbon-now-sh", "highlight-undo.nvim", "ts-node-action", "LazyVim", @@ -40,9 +41,9 @@ vim.o.spell = false vim.notify = vscode.notify vim.g.clipboard = vim.g.vscode_clipboard -local function vscode_action(cmd) +local function vscode_action(cmd, opts) return function() - vscode.action(cmd) + vscode.action(cmd, opts) end end @@ -58,16 +59,54 @@ vim.api.nvim_create_autocmd("User", { map("n", "ss", vscode_action("workbench.action.gotoSymbol")) -- view problems map("n", "xx", vscode_action("workbench.actions.view.problems")) - -- open file explorer in left sidebar + -- open file explorer map("n", "e", vscode_action("workbench.view.explorer")) - -- Code Action - map("n", "ca", vscode_action("editor.action.codeAction")) - -- Open terminal - map("n", "ft", vscode_action("workbench.action.terminal.focus")) + -- toggle side bar + map("n", "ue", vscode_action("workbench.action.toggleSidebarVisibility")) + -- terminal + map("n", [[]], vscode_action("workbench.action.terminal.toggleTerminal")) + map("n", "fts", vscode_action("workbench.action.terminal.newWithCwd")) + -- close editor + map("n", "bd", vscode_action("workbench.action.closeActiveEditor")) + -- breakpoints + map("n", "", vscode_action("editor.debug.action.toggleBreakpoint")) + -- windows + map("n", "|", vscode_action("workbench.action.splitEditorRight")) + map("n", "-", vscode_action("workbench.action.splitEditorDown")) -- LSP actions + map("n", "ca", vscode_action("editor.action.codeAction")) map("n", "gy", vscode_action("editor.action.goToTypeDefinition")) map("n", "gr", vscode_action("editor.action.goToReferences")) map("n", "gi", vscode_action("editor.action.goToImplementation")) + map("n", "K", vscode_action("editor.action.showHover")) + map("n", "cr", vscode_action("editor.action.rename")) + map("n", "co", vscode_action("editor.action.organizeImport")) + map("n", "cf", vscode_action("editor.action.formatDocument")) + -- refactor + map("n", "cR", vscode_action("editor.action.refactor")) + -- markdown preview + map("n", "cp", vscode_action("markdown.showPreviewToSide")) + -- project manager + map("n", "fp", vscode_action("projectManager.listProjects")) + -- zoxide + -- stylua: ignore + map("n", "fz", vscode_action("terminalCommandKeys.run", + { args = { cmd = "cdzc", newTerminal = false, saveAllFiles = false, showTerminal = true, focus = true } } + )) + -- zen mode + map("n", "z", vscode_action("workbench.action.toggleZenMode")) + -- cspell + map("n", "!", vscode_action("cSpell.addWordToDictionary")) + map("n", "us", vscode_action("cSpell.toggleEnableSpellChecker")) + -- comments + map("n", "xt", vscode_action("workspaceAnchors.focus")) + -- git + map("n", "gg", vscode_action("gitlens.views.home.focus")) + map("n", "ub", vscode_action("gitlens.toggleFileBlame")) + -- statusline + map("n", "uS", vscode_action("workbench.action.toggleStatusbarVisibility")) + -- markdown preview + map("n", "cp", vscode_action("markdown.showPreviewToSide")) end, }) diff --git a/config/nvim/lua/plugins/gitsigns.lua b/config/nvim/lua/plugins/gitsigns.lua index 50e4f6e3..415aa258 100644 --- a/config/nvim/lua/plugins/gitsigns.lua +++ b/config/nvim/lua/plugins/gitsigns.lua @@ -2,7 +2,6 @@ return { "lewis6991/gitsigns.nvim", opts = { yadm = { enable = true }, - current_line_blame = true, current_line_blame_opts = { virt_text = true, virt_text_pos = "eol", -- 'eol' | 'overlay' | 'right_align' @@ -13,6 +12,6 @@ return { keys = { -- stylua: ignore { "ub", "Gitsigns toggle_current_line_blame", desc = "Toggle Line Blame" }, - { "uD", "Gitsigns toggle_deleted", desc = "Toggle Deletions Inline" }, + { "ghd", "Gitsigns toggle_deleted", desc = "Deletions Inline" }, }, } diff --git a/config/nvim/rules/biome.json b/config/nvim/rules/biome.json index fe004c38..3494b699 100644 --- a/config/nvim/rules/biome.json +++ b/config/nvim/rules/biome.json @@ -1,5 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/1.5.1/schema.json", + "$schema": "https://biomejs.dev/schemas/1.5.2/schema.json", "organizeImports": { "enabled": true }, diff --git a/config/nvim/snippets/languages/markdown.json b/config/nvim/snippets/languages/markdown.json index d2551272..10dad64e 100644 --- a/config/nvim/snippets/languages/markdown.json +++ b/config/nvim/snippets/languages/markdown.json @@ -1,42 +1,72 @@ { + "caution (callout)": { + "body": [ + "> [!CAUTION]", + "> $0" + ], + "description": "https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts", + "prefix": "caution (callout)" + }, + "centerdiv": { + "body": "
$0
", + "prefix": "centerdiv" + }, + "details & summary": { + "body": [ + "
", + "${1:Text}", + "$0", + "
" + ], + "description": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details", + "prefix": [ + "toggle / fold", + "details & summary" + ] + }, + "div": { + "body": "
$0
", + "description": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div", + "prefix": "div" + }, "image": { "body": "\"${2:alt", "description": "HTML syntax for images used to display images with reduced size", "prefix": "image" }, - "details & summary": { - "body": ["
", "${1:Text}", "$0", "
"], - "description": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details", - "prefix": ["toggle / fold", "details & summary"] - }, - "caution (callout)": { - "body": ["> [!CAUTION]", "> $0"], - "description": "https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts", - "prefix": "caution (callout)" - }, "important (callout)": { - "body": ["> [!IMPORTANT]", "> $0"], + "body": [ + "> [!IMPORTANT]", + "> $0" + ], "description": "https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts", "prefix": "important (callout)" }, "note (callout)": { - "body": ["> [!NOTE]", "> $0"], + "body": [ + "> [!NOTE]", + "> $0" + ], "description": "https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts", - "prefix": ["info (callout)", "note (callout)"] + "prefix": [ + "info (callout)", + "note (callout)" + ] }, "tip (callout)": { - "body": ["> [!TIP]", "> $0"], + "body": [ + "> [!TIP]", + "> $0" + ], "description": "https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts", "prefix": "tip (callout)" }, "warning (callout)": { - "body": ["> [!WARNING]", "> $0"], + "body": [ + "> [!WARNING]", + "> $0" + ], "description": "https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts", "prefix": "warning (callout)" - }, - "div": { - "body": ["
{$0}
"], - "description": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div", - "prefix": ["div"] } } diff --git a/config/rofi/.current_wallpaper b/config/rofi/.current_wallpaper index fcf78139..e575d150 120000 --- a/config/rofi/.current_wallpaper +++ b/config/rofi/.current_wallpaper @@ -1 +1 @@ -/home/sankalp/Pictures/wallpapers/17.png \ No newline at end of file +/home/ja/Pictures/wallpapers/CuteCat.png \ No newline at end of file diff --git a/config/rofi/config-long.rasi b/config/rofi/config-long.rasi index a6b3d8d7..95ac9e7e 100644 --- a/config/rofi/config-long.rasi +++ b/config/rofi/config-long.rasi @@ -1,38 +1,45 @@ -/* ---- Configuration ---- */ +/*****----- Configuration -----*****/ configuration { - modi: "drun,run,filebrowser,file-browser-extended"; - font: "Fira Code SemiBold 12"; - show-icons: true; + modi: "drun,run,filebrowser"; + show-icons: false; display-drun: "🐧"; display-run: "πŸ“¦"; display-filebrowser: "πŸ“‚"; display-window: "πŸ—„οΈ"; - display-file-browser-extended: "πŸ—„οΈ"; - drun-display-format: "{name}"; - hover-select: true; - me-select-entry: "MouseSecondary"; - me-accept-entry: "MousePrimary"; - window-format: "{w} Β· {c} Β· {t}"; - dpi: 1; - + drun-display-format: "{name} [({generic})]"; + window-format: "{w} Β· {c} Β· {t}"; } - - * { - background: #1E1F29FF; - background-alt: #282A36FF; - foreground: #FFFFFFFF; - selected: #BD93F9FF; - active: #50FA7BFF; - urgent: #FF5555FF; + font: "JetBrainsMono Nerd Font 12"; + + background: #1E1D2FFF; + background-alt: #282839FF; + foreground: #D9E0EEFF; + selected: #7AA2F7FF; + active: #ABE9B3FF; + urgent: #F28FADFF; + + + border-colour: var(selected); + handle-colour: var(selected); + background-colour: var(background); + foreground-colour: var(foreground); + alternate-background: var(background-alt); + normal-background: var(background); + normal-foreground: var(foreground); + urgent-background: var(urgent); + urgent-foreground: var(background); + active-background: var(active); + active-foreground: var(background); + } +/*****----- Main Window -----*****/ /* ---- Window ---- */ window { width: 700px; - /*height: 500px;*/ x-offset: 0px; y-offset: 0px; spacing: 0px; @@ -45,31 +52,61 @@ window { anchor: center; fullscreen: false; enabled: true; - border-radius: 12px; + border-radius: 15px; + border-radius: 15px; background-color: transparent; } -/* ---- Mainbox ---- */ +/*****----- Main Box -----*****/ mainbox { - enabled: true; - orientation: vertical; - padding: 8px; - background-image: url("~/.config/rofi/.current_wallpaper", height); - children: [ "imagebox" ]; - border-radius: 12px; - background-color: transparent; + enabled: true; + orientation: vertical; + padding: 8px; + border-radius: 12px; + border-color: @border-colour; + background-color: transparent; + children: [ "inputbar", "listbox"]; + background-image: url("~/.config/rofi/.current_wallpaper", height); } -/* ---- Imagebox ---- */ -imagebox { - background-color: transparent; - orientation: vertical; - children: [ "inputbar", "listbox"]; +/*****----- Inputbar -----*****/ +inputbar { + enabled: true; + spacing: 10px; + padding: 14px; + border-radius: 10px; + border: 1px; + border-color: @foreground; + background-color: transparent; + text-color: #FFFF00; + children: [ "prompt", "textbox-prompt-colon", "entry" ]; +} + +prompt { + enabled: true; + background-color: inherit; + text-color: inherit; +} +textbox-prompt-colon { + enabled: true; + expand: false; + str: ""; + background-color: transparent; + text-color: inherit; +} +entry { + enabled: true; + background-color: transparent; + text-color: inherit; + cursor: text; + placeholder: ""; + placeholder-color: inherit; } /* ---- Listbox ---- */ listbox { spacing: 4px; + padding: 1px; orientation: vertical; children: [ "listview" ]; border-radius: 10px; @@ -78,34 +115,8 @@ listbox { background-color: transparent; } -/* ---- Inputbar ---- */ -inputbar { - enabled: true; - text-color: @foreground; - spacing: 10px; - padding: 6px; - border-radius: 10px; - border-color: @foreground; - background-color: transparent; - children: [ "textbox-prompt-colon", "entry" ]; - border: 1px; - border-color: @foreground; -} - -textbox-prompt-colon { - enabled: true; - expand: false; - str: "πŸ”Ž "; - text-color: inherit; - background-color: transparent; -} - -entry { - enabled: true; - text-color: inherit; - cursor: text; - placeholder: "Search"; - placeholder-color: inherit; +/* ---- Dummy ---- */ +dummy { background-color: transparent; } @@ -113,27 +124,34 @@ entry { listview { enabled: true; columns: 1; - lines: 9; + lines: 10; spacing: 4px; dynamic: true; cycle: true; - scrollbar: true; + scrollbar: false; layout: vertical; reverse: false; fixed-height: true; - fixed-columns: true; + fixed-columns: false; background-color: transparent; border-radius: 10px; } +scrollbar { + handle-width: 1px ; + handle-color: @handle-colour; + border-radius: 1px; + background-color: @alternate-background; +} /* ---- Element ---- */ element { enabled: true; - padding: 2px; + padding: 5px; margin: 2px; cursor: pointer; - background-color: transparent; + background-color: transparent; border-radius: 10px; + border: 0px; } element normal.normal { @@ -190,7 +208,7 @@ element-icon { element-text { background-color: transparent; - text-color: inherit; + text-color: #FFFF00; cursor: inherit; vertical-align: 0.5; horizontal-align: 0.0; @@ -198,27 +216,21 @@ element-text { /*****----- Message -----*****/ message { - background-color: transparent; - border: 0px; + background-color: @background; margin: 20px 0px 0px 0px; - padding: 0px; - spacing: 0px; border-radius: 10px; } textbox { - padding: 6px; - margin: 0px; - border-radius: 0px; - background-color: transparent; + padding: 15px; + background-color: @background; text-color: @foreground; - vertical-align: 0.5; - horizontal-align: 0.0; } error-message { - padding: 6px; - border-radius: 20px; - background-color: @background; + padding: 15px; + border-radius: 20px; + background-color: @background; text-color: @foreground; } + diff --git a/config/rofi/config-powermenu.rasi b/config/rofi/config-powermenu.rasi index 80abf03d..1c09b951 100644 --- a/config/rofi/config-powermenu.rasi +++ b/config/rofi/config-powermenu.rasi @@ -63,7 +63,7 @@ prompt { border-radius: 15px; border-color: @foreground; background-color: transparent; - text-color: @foreground; + text-color: #FFFF00; cursor: text; } @@ -94,7 +94,7 @@ element { padding: 20px; border-radius: 30px; background-color: transparent; - text-color: @foreground; + text-color: #FFFF00; cursor: pointer; } element-text { diff --git a/config/rofi/config-wallpaper.rasi b/config/rofi/config-wallpaper.rasi index 3a699562..c58ea2ce 100644 --- a/config/rofi/config-wallpaper.rasi +++ b/config/rofi/config-wallpaper.rasi @@ -84,7 +84,7 @@ dummy { /* ---- Inputbar ---- */ inputbar { enabled: true; - text-color: @foreground; + text-color: #FFFF00; spacing: 10px; padding: 8px; border-radius: 10px; @@ -99,7 +99,7 @@ textbox-prompt-colon { enabled: true; expand: false; str: "σ°Έ‰ "; - text-color: inherit; + text-color: #FFFF00; background-color: transparent; } @@ -197,7 +197,7 @@ element-icon { element-text { font: "Fira Code SemiBold 8"; background-color: transparent; - text-color: inherit; + text-color: #FFFF00; cursor: inherit; vertical-align: 0.5; horizontal-align: 0.5; diff --git a/config/rofi/config.rasi b/config/rofi/config.rasi index 309f4f20..f4bdc3f7 100644 --- a/config/rofi/config.rasi +++ b/config/rofi/config.rasi @@ -78,7 +78,7 @@ inputbar { border: 1px; border-color: @foreground; background-color: transparent; - text-color: @foreground; + text-color: #FFFF00; children: [ "prompt", "textbox-prompt-colon", "entry" ]; } @@ -156,12 +156,12 @@ element { element normal.normal { background-color: inherit; - text-color: @foreground; + text-color: #1e1e2e; } element normal.urgent { background-color: inherit; - text-color: @foreground; + text-color: #1e1e2e; } element normal.active { @@ -208,7 +208,7 @@ element-icon { element-text { background-color: transparent; - text-color: inherit; + text-color: #FFFF00; cursor: inherit; vertical-align: 0.5; horizontal-align: 0.0; diff --git a/config/rofi/launcher.rasi b/config/rofi/launcher.rasi index d5213d8e..126a3f6d 100644 --- a/config/rofi/launcher.rasi +++ b/config/rofi/launcher.rasi @@ -70,7 +70,7 @@ inputbar { border-radius: 10px; border-color: @foreground; background-color: transparent; - text-color: white; + text-color: #FFFF00; children: ["textbox-prompt-colon", "entry"]; } @@ -189,7 +189,7 @@ element-icon { element-text { background-color: transparent; - text-color: inherit; + text-color: #FFFF00; cursor: inherit; vertical-align: 0.5; horizontal-align: 0.0; diff --git a/config/waybar/config b/config/waybar/config index d244b1ad..72fca87a 120000 --- a/config/waybar/config +++ b/config/waybar/config @@ -1 +1 @@ -/home/sankalp/.config/waybar/configs/[BOT] gardenia \ No newline at end of file +/home/sankalp/.config/waybar/configs/[TOP & BOT] summitsplit \ No newline at end of file diff --git a/config/waybar/configs/[ALL] allside b/config/waybar/configs/[ALL] allside deleted file mode 100644 index c0d29990..00000000 --- a/config/waybar/configs/[ALL] allside +++ /dev/null @@ -1,125 +0,0 @@ -// ### ALL SIDES ### // - -[{ -// ### TOP PANEL ## - -"include": "~/.config/waybar/modules", -"layer": "top", -//"mode": "dock", -"exclusive": true, -"passthrough": false, -"position": "top", -"spacing": 3, -"fixed-center": true, -"ipc": true, -"margin-left": 8, -"margin-right": 8, -"margin-top": 2, - -"modules-left": [ - "cpu", - "custom/CpuTemp", - "memory", - "custom/weather", - ], - -"modules-center": [ - "custom/cava_mviz", - ], - -"modules-right": [ - "battery", - "backlight", - "network", - "custom/swaync" - ], -}, - -// ### LEFT PANEL ### // -{ -"include": "~/.config/waybar/modules", -"layer": "top", -"position": "left", -"margin-top": 8, -"margin-bottom": 8, -"margin-left": 3, -//"margin-right": 3, -"spacing": 3, -"fixed-center": true, -"ipc": true, -//"gtk-layer-shell": true, - -"modules-left": [ - "custom/menu", - ], - -"modules-center": [ - "hyprland/workspaces#4", - ], - -"modules-right": [ - "idle_inhibitor", - ], -}, - -// ### RIGHT PANEL ### // -{ -"include": "~/.config/waybar/modules", -"layer": "top", -"position": "right", -"margin-top": 8, -"margin-bottom": 8, -//"margin-left": 3, -"margin-right": 3, -"spacing": 3, -"fixed-center": true, -"ipc": true, -"gtk-layer-shell": true, - -"modules-left": [ - "custom/lock", - ], - -"modules-center": [ - "clock#vertical", - ], - -"modules-right": [ - "custom/power_vertical", - ], -}, - -// ### BOTTOM PANEL ### // -{ -"include": "~/.config/waybar/modules", -"layer": "top", -"mode": "dock", -"exclusive": true, -"passthrough": false, -"position": "bottom", -"spacing": 3, -"fixed-center": true, -"ipc": true, -"margin-left": 8, -"margin-right": 8, -"margin-bottom": 2, - -"modules-left": [ - "wlr/taskbar", - ], - -"modules-center": [ - "hyprland/window", - ], - -"modules-right": [ - "mpris", - "tray", - "custom/keyboard", - //"keyboard-state", - "pulseaudio", - //"wireplumber", - "pulseaudio#microphone", - ], - -}] diff --git a/config/waybar/configs/[BOT & Right] southeast b/config/waybar/configs/[BOT & Right] southeast index f281fdaf..81a462f8 100644 --- a/config/waybar/configs/[BOT & Right] southeast +++ b/config/waybar/configs/[BOT & Right] southeast @@ -18,7 +18,7 @@ "modules-left": [ "custom/menu", "cpu", - "temperature", + "custom/CpuTemp", "memory", "disk", ], diff --git a/config/waybar/configs/[BOT] default b/config/waybar/configs/[BOT] default index 7b5baeb2..a7e4dc6d 100644 --- a/config/waybar/configs/[BOT] default +++ b/config/waybar/configs/[BOT] default @@ -24,7 +24,7 @@ "custom/separator#dot-line", "custom/weather", "custom/separator#blank_3", - "custom/cava_mviz", + "custom/music", ], "modules-center": [ diff --git a/config/waybar/configs/[BOT] peony b/config/waybar/configs/[BOT] peony index 164db3c7..4c8b683a 100644 --- a/config/waybar/configs/[BOT] peony +++ b/config/waybar/configs/[BOT] peony @@ -25,7 +25,7 @@ "custom/separator#blank", "pulseaudio", "custom/separator#blank", - "temperature", + "custom/CpuTemp", "custom/separator#blank", "network#peony", "custom/swaync"], diff --git a/config/waybar/configs/[TOP] default b/config/waybar/configs/[TOP] default index 50f34660..9fa46ad2 100644 --- a/config/waybar/configs/[TOP] default +++ b/config/waybar/configs/[TOP] default @@ -24,7 +24,7 @@ "custom/separator#dot-line", "custom/weather", "custom/separator#blank_3", - "custom/cava_mviz", + "custom/music", ], "modules-center": [ diff --git a/config/waybar/configs/[TOP] minimal - long b/config/waybar/configs/[TOP] minimal - long index 8b46a3d9..a7438409 100644 --- a/config/waybar/configs/[TOP] minimal - long +++ b/config/waybar/configs/[TOP] minimal - long @@ -24,6 +24,7 @@ "mpris", "custom/swaync", "tray", + "custom/music" ], "modules-center": [ "clock", diff --git a/config/waybar/configs/[TOP] minimal - short b/config/waybar/configs/[TOP] minimal - short index 24ed3d34..1b58871c 100644 --- a/config/waybar/configs/[TOP] minimal - short +++ b/config/waybar/configs/[TOP] minimal - short @@ -12,6 +12,7 @@ "modules-left": [ "clock", "custom/weather", + "custom/music", ], "modules-center": [ diff --git a/config/waybar/configs/[TOP] sleek b/config/waybar/configs/[TOP] sleek index 5f3c2a83..a1e6ab69 100644 --- a/config/waybar/configs/[TOP] sleek +++ b/config/waybar/configs/[TOP] sleek @@ -22,6 +22,7 @@ ], "modules-right": [ + "custom/music", "custom/swaync", "custom/separator#blank", "tray", diff --git a/config/waybar/modules b/config/waybar/modules index 72930e91..21146c3e 100644 --- a/config/waybar/modules +++ b/config/waybar/modules @@ -115,7 +115,7 @@ "all-outputs": true, "sort-by-number": true, "format-icons": { - "1": "", + "1": "ξ―†", "2": "ο„ ", "3": "", "4": "", @@ -397,8 +397,8 @@ "interval": 10, "format": "{player_icon} ", "format-paused": "{status_icon}", - "on-click-middle": "playerctl play-pause", - "on-click": "playerctl previous", + "on-click": "playerctl play-pause", + "on-click-middle": "playerctl previous", "on-click-right": "playerctl next", "scroll-step": 5.0, "on-scroll-up": "~/.config/hypr/scripts/Volume.sh --inc", @@ -423,6 +423,25 @@ "max-length": 30, }, +// This is a custom cava visualizer +"custom/music": { + "format": "{icon}{}", + "format-icons": { + // "Playing": "ο…„ ", // Uncomment if not using the dynamic script + "Paused": "ο£€ ", + "Stopped": "‭ο­₯ " // This stop symbol is RTL. So ‭ is left-to-right override. +}, + "escape": true, + "tooltip": true, + "exec": "~/.config/hypr/scripts/Caway.sh -b 10", + "return-type": "json", + "on-click": "playerctl play-pause", + "on-click-middle": "playerctl previous", + "on-click-right": "playerctl next", + "max-length": 30 +}, + + "wlr/taskbar": { "format": "{icon}", "icon-size": 15, @@ -482,12 +501,6 @@ "tooltip": false, }, -// This is a custom cava visualizer -"custom/cava_mviz": { - "exec": "~/.config/hypr/scripts/WaybarCava.sh", - "format": "{}" -}, - "custom/lock": { "format": "󰌾 {}", "exec": "echo ; echo σ°·› screen lock", diff --git a/config/waybar/style.css b/config/waybar/style.css index 7b703bf8..5652ea5b 100644 --- a/config/waybar/style.css +++ b/config/waybar/style.css @@ -136,7 +136,6 @@ window#waybar.empty { #wireplumber, #workspaces, #custom-keybinds, -#custom-music, #custom-keyboard, #custom-CpuTemp, #custom-cycle_wall, @@ -145,6 +144,7 @@ window#waybar.empty { #custom-speaker, #custom-lock, #custom-menu, +#custom-music, #custom-power_vertical, #custom-power, #custom-swaync, @@ -282,8 +282,8 @@ window#waybar.empty { transition: all 0.3s cubic-bezier(.55,-0.68,.48,1.682); } -#custom-cava_mviz { - color : @pink; +#custom-music { + color: @mauve; } #custom-menu {