mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-25 06:24:35 +00:00
Add helix
This commit is contained in:
parent
f4a631dd17
commit
286920def4
|
@ -1,6 +1,6 @@
|
|||
_: {
|
||||
imports = [
|
||||
./neovim
|
||||
./helix
|
||||
];
|
||||
}
|
||||
|
||||
|
|
42
home/programs/terminal/editors/helix/default.nix
Normal file
42
home/programs/terminal/editors/helix/default.nix
Normal 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"];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue