Add helix lsp

This commit is contained in:
muon 2024-09-03 14:40:28 +00:00
parent 3867429e17
commit 48c12d0fea

View file

@ -3,7 +3,14 @@
lib.mkEnableOption "enables cli editor";
config = lib.mkIf config.mods.terminal.development.enable {
# home.packages = with pkgs; [];
home.packages = with pkgs; [
# Nix
nil
# Rust
rust-analyzer
lldb_18
];
programs.direnv = {
enable = true;
@ -18,13 +25,13 @@
settings = {
keys.normal = {
"esc" = ["collapse_selection" "keep_primary_selection"];
"esc" = [ "collapse_selection" "keep_primary_selection" ];
};
editor = {
line-number = "relative";
completion-replace = true;
bufferline = "always";
rulers = [80];
rulers = [ 80 ];
soft-wrap.enable = true;
indent-guides.render = true;
cursor-shape = {
@ -34,6 +41,19 @@
};
};
};
languages.language = [
{
name = "nix";
auto-format = true;
formatter.command = "${pkgs.nixfmt}/bin/nixfmt";
}
{
name = "rust";
auto-format = true;
formatter.command = "rustfmt";
}
];
};
};
}