Skip to content

Instantly share code, notes, and snippets.

@james2doyle
Last active September 27, 2019 16:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save james2doyle/16c3954b942e16fb1ba07ec3a20bc0dc to your computer and use it in GitHub Desktop.
Save james2doyle/16c3954b942e16fb1ba07ec3a20bc0dc to your computer and use it in GitHub Desktop.
A Sublime project file for Wordpress themes/sites. Assumes LSPs are being used as well as a "twentyseventeen" theme
{
"folders": [
{
"path": ".",
"folder_exclude_patterns": [
"vendor",
"node_modules",
"wp-content/themes/twentyfifteen",
"wp-content/themes/twentysixteen",
"wp-content/themes/twentynineteen", // make sure you dont ignore your own theme
"wp-admin",
"wp-includes",
"wp-content/plugins",
"wp-content/mu-plugins"
],
"file_exclude_patterns": [
".gitkeep",
"*min*",
".phpstorm.meta.php",
"_ide_helper.php"
],
"follow_symlinks": true
},
],
"settings": {
"LSP": {
"intelephense-ls": {
"enabled": true
},
"psalm": {
"enabled": true // psalm --init .
},
"phan": {
"enabled": false // phan doesnt like wordpress
},
"json": {
"enabled": true
},
"css-langserver": {
"enabled": true
}
},
"tab_size": 4,
"translate_tabs_to_spaces": true,
"jsdocs_return_tag": "@return"
},
"syntax_override": {
"\\.inc$": ["PHP", "PHP"],
"\\.js$": ["Babel", "JavaScript (Babel)"]
// "\\.js$": ["TypeScript", "TypeScript"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment