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

66 lines
1.2 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
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;
2023-10-09 23:37:08 +02:00
## use after helix update
# languages = {
# language-server.rnix-lsp = {
# command = "rnix-lsp";
# };
# language = [
# {
# name = "nix";
# auto-format = true;
# language-servers = [ "rnix-lsp" ];
# }
# ];
# };
## old version
2023-05-21 01:25:33 +02:00
languages = {
language = [
{
name = "nix";
auto-format = true;
2023-10-09 23:37:08 +02:00
language-server.command = "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 = {
line-number = "relative";
cursor-shape.insert = "bar";
lsp = {
display-messages = true;
display-inlay-hints = true;
};
};
};
};
}