nixos-config/users/rouven/modules/helix/default.nix

52 lines
990 B
Nix
Raw Normal View History

2023-04-27 10:11:39 +02:00
{ pkgs, ... }:
2023-04-22 14:15:53 +02:00
{
home.packages = with pkgs; [
2023-05-14 12:39:19 +02:00
gdb
2023-04-22 14:15:53 +02:00
lldb
rust-analyzer
2023-05-15 22:59:59 +02:00
rnix-lsp
2023-04-22 14:15:53 +02:00
(python3.withPackages (ps: with ps; [
pyls-isort
pylsp-mypy
python-lsp-black
python-lsp-server
# pylsp optional dependencies
types-requests
flake8
mccabe
pycodestyle
pydocstyle
pyflakes
pylint
]))
clang-tools
];
programs.helix = {
enable = true;
themes.dracula-transparent = {
inherits = "dracula";
"ui.background" = "{}";
2023-04-23 16:56:26 +02:00
"ui.virtual.inlay-hint" = { fg = "#666666"; };
2023-04-22 14:15:53 +02:00
};
2023-05-15 22:59:59 +02:00
languages = [
{
name = "nix";
auto-format = true;
language-server.command = "rnix-lsp";
}
];
2023-04-22 14:15:53 +02:00
settings = {
theme = "dracula-transparent";
editor = {
line-number = "relative";
cursor-shape.insert = "bar";
lsp = {
display-messages = true;
display-inlay-hints = true;
};
};
};
};
}