Skip to content

Commit

Permalink
Add roots to helix for python
Browse files Browse the repository at this point in the history
  • Loading branch information
arunoruto committed Jun 28, 2024
1 parent df0dd44 commit 8e05885
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions home-manager/server/shell/helix/languages/default.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# setup for multiple languages:
# https://freedium.cfd/https://alpha2phi.medium.com/helix-languages-7cf3263ed7c5
{
imports = [
./markdown.nix
Expand Down
7 changes: 7 additions & 0 deletions home-manager/server/shell/helix/languages/python.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
command = "ruff";
args = ["format" "--line-length" "88" "--quiet" "-"];
};
roots = [
"setup.py"
"setup.cfg"
"pyproject.toml"
"pyrightconfig.json"
"Poetry.lock"
];
}
];
language-server = {
Expand Down

0 comments on commit 8e05885

Please sign in to comment.