Repository navigation
per project settings for plugins #971
Replies: 2 comments
|
There's no per-project setting for language servers or linters yet. In the current source,
You can still keep the school tools to one folder without profiles, by pointing the commands at small wrapper scripts that check which folder you're in. The examples use Python language server. ecode's default Python server is {
"servers": [
{ "name": "pylsp", "command": "/home/you/bin/py-lsp" }
]
}
#!/bin/sh
case "$PWD/" in
"$HOME/school/"*) exec school-language-server ;; # the command for the server your school requires
*) exec pylsp "$@" ;;
esacJS/TS linter. A user {
"linters": [
{
"language": ["javascript", "typescript", "jsx", "tsx"],
"file_patterns": ["%.js$", "%.ts$", "%.jsx$", "%.tsx$"],
"warning_pattern": "[^:]:(%d+):(%d+): ([^%[]+)%[([^\n]+)",
"warning_pattern_order": { "line": 1, "col": 2, "message": 3, "type": 4 },
"command": "/home/you/bin/js-lint $PROJECTPATH $FILENAME"
}
]
}
#!/bin/sh
case "${1%/}/" in
"$HOME/school/"*) cd "$1" && exec npx eslint --no-ignore --format unix "$2" ;;
*) exec oxlint --no-ignore --format unix "$2" ;;
esacThe
The behaviour above is from the current source in SpartanJ/eepp ( |
|
@rajeet-kumar IDK what are these random user answers, it looks like people are putting AI agents to investigate how to answer these questions but it's pure slop. Per project settings for plugins it's feasible and reasonable, it's something I thought about supporting it, although it adds quite a lot of complexity so I'm unsure about it. I think it's justified for LSP, linter and formatter plugins. Let me think about it. |
Uh oh!
There was an error while loading. Please reload this page.
school mandates the use of a python language server that’s pretty much unmaintained as of 2026. for js, they’re also forcing the industry-standard eslint instead of ecode defaults (oxlint and prettier). i want to limit school life to only this folder. i don’t want my life outside as a hobbyist to be sucked into my teachers’ choices.
i don't want to use multiple ecode profiles, by the way. i don't want to mess with shortcuts or desktop files.
All reactions