Add helix

This commit is contained in:
ItsDrike 2024-07-27 00:10:00 +02:00
parent f4a631dd17
commit 286920def4
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
2 changed files with 43 additions and 1 deletions

View file

@ -1,6 +1,6 @@
_: {
imports = [
./neovim
./helix
];
}

View file

@ -0,0 +1,42 @@
{pkgs, ...}: {
programs.helix = {
enable = true;
settings = {
theme = "tokyonight";
editor = {
line-number = "relative";
lsp.display-messages = true;
};
};
languages = {
language = [
{
name = "python";
scope = "source.python";
injection-regex = "python";
file-types = ["py" "pyi" "py3" "pyw" ".pythonstartup" ".pythonrc"];
shebangs = ["python"];
roots = ["." "pyproject.toml" "pyrightconfig.json"];
comment-token = "#";
language-servers = ["basedpyright" "ruff"];
indent = {
tab-width = 4;
unit = " ";
};
auto-format = true;
}
];
language-server = {
ruff = {
command = "ruff-lsp";
};
basedpyright = {
command = "basedpyright-langserver";
args = ["--stdio"];
};
};
};
};
}