diff --git a/files/vscode-settings.json b/files/vscode-settings.json index 897afd8..1774469 100644 --- a/files/vscode-settings.json +++ b/files/vscode-settings.json @@ -1,5 +1,6 @@ { "chat.agent.enabled": false, + "chat.disableAIFeatures": true, "debug.allowBreakpointsEverywhere": true, "diffEditor.ignoreTrimWhitespace": false, "editor.accessibilitySupport": "off", @@ -9,6 +10,7 @@ "editor.multiCursorModifier": "ctrlCmd", "editor.renderWhitespace": "boundary", "editor.tabSize": 2, + "editor.aiStats.enabled": false, "explorer.confirmDelete": false, "extensions.ignoreRecommendations": true, "files.trimTrailingWhitespace": true, @@ -17,9 +19,11 @@ "redhat.telemetry.enabled": false, "terminal.integrated.fontFamily": "Hack", "terminal.integrated.scrollback": 1000000, + "terminal.integrated.suggest.enabled": false, "update.showReleaseNotes": false, "workbench.colorTheme": "Default Light+", "workbench.secondarySideBar.defaultVisibility": "hidden", + "workbench.settings.showAISearchToggle": false, "[asn1]": { "editor.formatOnSave": false }, @@ -56,6 +60,7 @@ "C_Cpp.clang_format_path": "/usr/local/bin/clang-format", "C_Cpp.default.configurationProvider": "vector-of-bool.cmake-tools", "C_Cpp.intelliSenseEngine": "Default", + "C_Cpp.copilotHover": "disabled", "cmake.configureOnOpen": true, "cmake.generator": "Ninja", "cmake.options.statusBarVisibility": "icon", @@ -167,6 +172,7 @@ "markdown-pdf.margin.right": "1.5cm", "python.linting.pylintPath": "/usr/local/bin/pylint", "python.pythonPath": "/usr/local/bin/python3", + "python.analysis.aiHoverSummaries": false, "rust-analyzer.hover.memoryLayout.size": "both", "rust-analyzer.imports.granularity.enforce": true, "yaml.format.printWidth": 110 diff --git a/tasks/devel-Darwin.yml b/tasks/devel-Darwin.yml index 7f088b5..a315680 100644 --- a/tasks/devel-Darwin.yml +++ b/tasks/devel-Darwin.yml @@ -2,8 +2,8 @@ # Common/Devel: Install and Configure Dev Env - macOS Version - name: Devel - Fonts - community.general.homebrew_cask: - name: homebrew/cask-fonts/font-hack + community.general.homebrew: + name: font-hack state: present # Install Visual Studio Code and Set Basic Configuration @@ -81,6 +81,6 @@ state: present vars: packages: - - basictex + - basictex # neeeds sudo - tex-live-utility diff: false diff --git a/tasks/devel.yml b/tasks/devel.yml index a67d951..a942f1c 100644 --- a/tasks/devel.yml +++ b/tasks/devel.yml @@ -14,39 +14,46 @@ # - user_lang_latex: Boolean for LaTeX - name: VSCode - Install and configure VS Code - ansible.builtin.include_tasks: "{{ item }}" + tags: vscode + ansible.builtin.include_tasks: + file: "{{ item }}" + apply: + tags: vscode with_first_found: - "devel-{{ ansible_facts['distribution'] }}.yml" - "devel-{{ (override_os_family is defined) | ternary(override_os_family, ansible_facts['os_family']) }}.yml" # Install Visual Studio Code and Set Basic Configuration - name: VSCode - Basics + tags: vscode when: user_vscode block: - name: VSCode - Basics - Configure ansible.builtin.shell: | - PATH=/usr/local/bin:$PATH - code --install-extension chiehyu.vscode-astyle - code --install-extension editorconfig + PATH=/usr/local/bin:/opt/homebrew/bin:$PATH + # code --install-extension chiehyu.vscode-astyle + # code --install-extension editorconfig code --install-extension mhutchie.git-graph code --install-extension yzane.markdown-pdf code --install-extension jebbs.plantuml code --install-extension mechatroner.rainbow-csv - code --install-extension grapecity.gc-excelviewer + # code --install-extension grapecity.gc-excelviewer # VS Code - C/C++ Development Tools - name: VSCode - C/C++ + tags: lang_cpp when: user_vscode and user_lang_cpp block: - name: VSCode - C/C++ - Configure VS Code ansible.builtin.shell: | - PATH=/usr/local/bin:$PATH + PATH=/usr/local/bin:/opt/homebrew/bin:$PATH code --install-extension ms-vscode.cpptools code --install-extension ms-vscode.cmake-tools # VS Code - Python Development Tools - name: Devel - Python - Install python dev packages + tags: lang_python when: user_lang_python ansible.builtin.pip: name: @@ -58,12 +65,13 @@ block: - name: VSCode - Python - Configure VS Code ansible.builtin.shell: | - PATH=/usr/local/bin:$PATH + PATH=/usr/local/bin:/opt/homebrew/bin:$PATH code --install-extension ms-python.python # VC Code - Golang Development Tools # https://golang.org/doc/install - name: Devel - Golang - Setup Environment + tags: lang_golang when: user_lang_golang block: - name: Devel - Golang - Create workspace directory @@ -92,15 +100,17 @@ # and group all golang stuff in one section inside zshrc-host - name: VSCode - Golang + tags: lang_golang when: user_vscode and user_lang_golang block: - name: VSCode - Golang - Configure VS Code ansible.builtin.shell: | - PATH=/usr/local/bin:$PATH + PATH=/usr/local/bin:/opt/homebrew/bin:$PATH code --install-extension golang.go # VS Code - LaTeX Distribution - name: Devel - LaTeX - Install TeX packages + tags: lang_latex when: user_lang_latex become: true ansible.builtin.shell: | @@ -110,9 +120,10 @@ tlmgr install collection-fontsextra collection-fontsrecommended collection-fontutils collection-langgerman collection-langenglish collection-mathscience tlmgr install todonotes textpos lipsum pgfopts xpatch enumitem nomencl glossaries glossaries-german glossaries-english datatool mfirstuc xfor substr tracklang placeins placeins-plain csquotes appendixnumberbeamer fontaxes hyphenat datetime2 scrhack setspaceenhanced catchfile lscapeenhanced - name: VSCode - LaTeX + tags: lang_latex when: user_vscode and user_lang_latex block: - name: VSCode - Basics - Configure ansible.builtin.shell: | - PATH=/usr/local/bin:$PATH + PATH=/usr/local/bin:/opt/homebrew/bin:$PATH code --install-extension james-yu.latex-workshop diff --git a/tasks/usersettings.yml b/tasks/usersettings.yml index d24265c..1aa2923 100644 --- a/tasks/usersettings.yml +++ b/tasks/usersettings.yml @@ -2,7 +2,7 @@ # Common/Usersettings: Universial Dotfiles. Update regularly. - name: Usersettings - Install required tools - become: true + become: "{{ ansible_facts['os_family'] != 'Darwin' }}" ignore_errors: true # just fail on systems without sudo access ansible.builtin.package: name: "{{ packages }}"