Add vscode extension / settings

This commit is contained in:
Jake Howard 2018-02-19 13:39:25 +00:00
parent d0973bbee9
commit cac7d876cc
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 80 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{
"workbench.statusBar.feedback.visible": false,
"sublimeTextKeymap.promptV3Features": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.snippetSuggestions": "top",
"editor.formatOnPaste": false,
"workbench.colorTheme": "Darcula",
"workbench.iconTheme": "material-icon-theme",
"telemetry.enableCrashReporter": true,
"telemetry.enableTelemetry": false,
"update.channel": "none",
"extensions.autoUpdate": false,
"window.zoomLevel": 0,
"gitlens.currentLine.enabled": false,
"gitlens.hovers.currentLine.over": "line",
"scss.scannerExclude": [
"**/.git",
"**/bower_components"
],
"less.scannerExclude": [
"**/.git",
"**/bower_components"
],
"python.workspaceSymbols.exclusionPatterns": [],
"gitlens.codeLens.enabled": false,
"npm.validate.enable": false,
"workbench.activityBar.visible": false,
"editor.fontSize": 14,
"files.trimTrailingWhitespace": true,
}

View file

@ -2,6 +2,7 @@ class config {
include 'config::vim'
include 'config::fonts'
include 'config::private'
include 'config::vscode'
file { 'Touchpad gestures config':
ensure => file,

View file

@ -0,0 +1,49 @@
class config::vscode {
$extensions = [
'DavidAnson.vscode-markdownlint',
'PKief.material-icon-theme',
'PeterJausovec.vscode-docker',
'Zignd.html-css-class-completion',
'akmittal.hugofy',
'bibhasdn.django-html',
'bibhasdn.django-snippets',
'bitzl.vscode-puppet',
'bogdan-sinitsa.theme-dark-monokai',
'christian-kohler.npm-intellisense',
'dbaeumer.vscode-eslint',
'donjayamanne.jupyter',
'donjayamanne.python-extension-pack',
'eamodio.gitlens',
'eg2.tslint',
'eg2.vscode-npm-script',
'formulahendry.code-runner',
'ionutvmi.path-autocomplete',
'kalitaalexey.vscode-rust',
'magicstack.MagicPython',
'mrmlnc.vscode-less',
'mrmlnc.vscode-scss',
'ms-python.python',
'ms-vscode.sublime-keybindings',
'rokoroku.vscode-theme-darcula',
'saviorisdead.RustyCode',
'steoates.autoimport',
'truman.autocomplate-shell',
'wholroyd.jinja',
'zolocode.editorzoom'
];
$extensions.each |String $extension| {
exec { "Install $extension extension for VSCode":
command => "code --install-extension $extension",
unless => "code --list-extensions | grep $extension",
user => 'jake'
}
}
file { 'VSCode config':
ensure => file,
mode => '0644',
path => '/home/jake/.config/Code/User/settings.json',
source => 'puppet:///modules/config/vscode-settings.json'
}
}