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

60 lines
1.1 KiB
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
nil
nixpkgs-fmt
2024-01-25 18:21:20 +01:00
typst-lsp
2023-04-22 14:15:53 +02:00
(python3.withPackages (ps: with ps; [
pyls-isort
pylsp-mypy
2024-04-10 00:34:03 +02:00
# python-lsp-black
2023-04-22 14:15:53 +02:00
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 = {
language-server.nil = {
command = "nil";
config = { nil.formatting.command = [ "nixpkgs-fmt" ]; };
2023-10-28 15:51:25 +02:00
};
2023-05-21 01:25:33 +02:00
language = [
{
name = "nix";
auto-format = true;
language-servers = [ "nil" ];
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";
completion-trigger-len = 0;
2023-04-22 14:15:53 +02:00
lsp = {
display-messages = true;
display-inlay-hints = true;
};
};
};
};
}