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

56 lines
1,008 B
Nix
Raw Normal View History

2023-10-09 23:37:08 +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
2023-10-15 16:30:40 +02:00
nodePackages.typescript-language-server
2023-04-22 14:15:53 +02:00
];
programs.helix = {
enable = true;
2023-10-09 23:37:08 +02:00
2023-05-21 01:25:33 +02:00
languages = {
2023-10-28 15:51:25 +02:00
language-server.rnix-lsp = {
command = "rnix-lsp";
};
2023-05-21 01:25:33 +02:00
language = [
{
name = "nix";
auto-format = true;
2023-10-28 15:51:25 +02:00
language-servers = [ "rnix-lsp" ];
2023-05-21 01:25:33 +02:00
}
];
};
2023-10-09 23:37:08 +02:00
2023-04-22 14:15:53 +02:00
settings = {
2023-06-19 23:58:04 +02:00
theme = "dracula";
2023-04-22 14:15:53 +02:00
editor = {
2023-10-30 19:02:25 +01:00
color-modes = true;
2023-04-22 14:15:53 +02:00
line-number = "relative";
cursor-shape.insert = "bar";
lsp = {
display-messages = true;
display-inlay-hints = true;
};
};
};
};
}