1
mirror of https://github.com/wlcx/home.git synced 2025-12-08 19:43:46 +00:00

helix: add and configure

This commit is contained in:
Sam W 2025-12-05 15:41:53 +00:00
parent 6e55465310
commit f89e0bcec7
2 changed files with 28 additions and 1 deletions

27
home/helix.nix Normal file
View File

@ -0,0 +1,27 @@
{ ... }: {
programs.helix = {
enable = true;
settings = {
theme = "monokai_pro";
editor."soft-wrap".enable = true;
};
languages = {
language-server.basedpyright = {
command = "basedpyright-langserver";
args = ["--stdio"];
};
language = [{
name = "python";
roots = [
"pyproject.toml"
"setup.py"
"poetry.lock"
".git"
];
language-servers = [{
name = "basedpyright";
}];
}];
};
};
}

View File

@ -3,7 +3,7 @@
default = ./default.nix;
# A machine for development
dev = {...}: {
imports = [./git.nix ./vim.nix ./vim-dev];
imports = [./git.nix ./vim.nix ./vim-dev ./helix.nix];
};
# A machine for dev with a GUI
# TODO: detect this automatically somehow?