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:
parent
6e55465310
commit
f89e0bcec7
27
home/helix.nix
Normal file
27
home/helix.nix
Normal 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";
|
||||
}];
|
||||
}];
|
||||
};
|
||||
};
|
||||
}
|
||||
@ -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?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user