Add vscode extension / settings
This commit is contained in:
parent
d0973bbee9
commit
cac7d876cc
3 changed files with 80 additions and 0 deletions
30
modules/config/files/vscode-settings.json
Normal file
30
modules/config/files/vscode-settings.json
Normal 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,
|
||||||
|
}
|
|
@ -2,6 +2,7 @@ class config {
|
||||||
include 'config::vim'
|
include 'config::vim'
|
||||||
include 'config::fonts'
|
include 'config::fonts'
|
||||||
include 'config::private'
|
include 'config::private'
|
||||||
|
include 'config::vscode'
|
||||||
|
|
||||||
file { 'Touchpad gestures config':
|
file { 'Touchpad gestures config':
|
||||||
ensure => file,
|
ensure => file,
|
||||||
|
|
49
modules/config/manifests/vscode.pp
Normal file
49
modules/config/manifests/vscode.pp
Normal 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'
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue