From 3bd7beedd19e0fb9c2ad4d294fb31dad2e142951 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Wed, 3 Mar 2021 14:28:06 +0100 Subject: [PATCH] add vscode --- conf.d/vscode/vscode-extensions.txt | 22 +++++++++ conf.d/vscode/vscode-settings.json | 72 +++++++++++++++++++++++++++++ meta/tasks/vscode.yaml | 15 ++++++ 3 files changed, 109 insertions(+) create mode 100644 conf.d/vscode/vscode-extensions.txt create mode 100644 conf.d/vscode/vscode-settings.json create mode 100644 meta/tasks/vscode.yaml diff --git a/conf.d/vscode/vscode-extensions.txt b/conf.d/vscode/vscode-extensions.txt new file mode 100644 index 0000000..cc0d772 --- /dev/null +++ b/conf.d/vscode/vscode-extensions.txt @@ -0,0 +1,22 @@ +christian-kohler.npm-intellisense +DavidAnson.vscode-markdownlint +dendron.dendron +dendron.dendron-markdown-links +dendron.dendron-markdown-preview-enhanced +dendron.dendron-markdown-shortcuts +dendron.dendron-paste-image +dendron.dendron-snippet-maker +donjayamanne.githistory +eamodio.gitlens +eg2.vscode-npm-script +Equinusocio.vsc-community-material-theme +Equinusocio.vsc-material-theme +equinusocio.vsc-material-theme-icons +GitHub.github-vscode-theme +James-Yu.latex-workshop +ms-azuretools.vscode-docker +ms-python.python +njpwerner.autodocstring +PKief.material-icon-theme +sadesyllas.vscode-workspace-switcher +vscodevim.vim diff --git a/conf.d/vscode/vscode-settings.json b/conf.d/vscode/vscode-settings.json new file mode 100644 index 0000000..15969f0 --- /dev/null +++ b/conf.d/vscode/vscode-settings.json @@ -0,0 +1,72 @@ +{ + "editor.wordWrap": "bounded", + "files.associations": { + "*.asy": "c" + }, + "workbench.iconTheme": "material-icon-theme", + "vim.enableNeovim": true, + "vim.neovimPath": "/usr/bin/nvim", + "vim.leader": ";", + "vim.insertModeKeyBindings": [ + { + "before": [";", ";"], + "after": [""] + } + ], + "vim.normalModeKeyBindingsNonRecursive": [ + { + "before": ["", "d"], + "after": ["d", "d"] + }, + { + "before": ["", "w"], + "commands": [":w"] + }, + { + "before": ["", "W"], + "commands": [":w! sudo tee %"] + }, + { + "before": ["", "z"], + "commands": [":x"] + }, + { + "before": ["", "q"], + "commands": [":q"] + }, + { + "before": ["", "Q"], + "commands": [":q!"] + } + ], + "vim.visualModeKeyBindings": [ + { + "before": [";", ";"], + "after": [""] + } + ], + "latex-workshop.latex.outDir": "%DIR%/build", + "latex-workshop.message.update.show": false, + "latex-workshop.message.log.show": false, + "latex-workshop.progress.barStyle": "Block Quadrants", + "latex-workshop.progress.runIconType": "Circled", + "latex-workshop.chktex.path": "/Library/TeX/texbin/chktex", + "latex-workshop.chktex.enabled": true, + "latex-workshop.intellisense.file.base": "both", + "latex-workshop.view.pdf.viewer": "external", + "terminal.integrated.shell.osx": "/bin/zsh", + "vscodeWorkspaceSwitcher.paths": [ + "~/Bureau", + "~/Desktop" + ], + "vscodeWorkspaceSwitcher.showTreeView": false, + "editor.fontSize": 18, + "workbench.colorTheme": "Dark+ Material", + "terminal.integrated.inheritEnv": false, + "vscode-md.options.mode": "wysiwyg", + "vscode-md.options.preview.math.engine": "MathJax", + "vscode-md.theme.code": "vim", + "kite.showWelcomeNotificationOnStartup": false, + "python.languageServer": "Pylance", + "vim.vimrc.path": "$HOME/.config/nvim/init.vim", +} \ No newline at end of file diff --git a/meta/tasks/vscode.yaml b/meta/tasks/vscode.yaml new file mode 100644 index 0000000..5211bff --- /dev/null +++ b/meta/tasks/vscode.yaml @@ -0,0 +1,15 @@ +# File : vscode.yaml +# Author : Jeff LANCE +# Date : 03.03.2021 +# Last Modified Date: 03.03.2021 +# Last Modified By : Jeff LANCE +- link: + ${HOME}/.config/Code - OSS/User/settings.json: + path: conf.d/vscode/vscode-settings.json + +- shell: + - command: '/bin/bash -c "xargs -n1 code --install-extension < conf.d/vscode/vscode-extensions.txt"' + description: Install vscode extensions + stderr: true + stdout: true +